當前位置: 首頁>>代碼示例>>Java>>正文


Java StoreFactory類代碼示例

本文整理匯總了Java中sonia.scm.store.StoreFactory的典型用法代碼示例。如果您正苦於以下問題:Java StoreFactory類的具體用法?Java StoreFactory怎麽用?Java StoreFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


StoreFactory類屬於sonia.scm.store包,在下文中一共展示了StoreFactory類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: TeamCityContext

import sonia.scm.store.StoreFactory; //導入依賴的package包/類
/**
 * Constructor.
 *
 * @param storeFactory
 *            the store factory
 */
@Inject
public TeamCityContext(final StoreFactory storeFactory)
{
    store = storeFactory.getStore(TeamCityGlobalConfiguration.class, STORE_NAME);
    globalConfiguration = store.get();

    if (globalConfiguration == null)
    {
        globalConfiguration = new TeamCityGlobalConfiguration();
    }
}
 
開發者ID:corux,項目名稱:scm-teamcity-plugin,代碼行數:18,代碼來源:TeamCityContext.java

示例2: initTeamCityContext

import sonia.scm.store.StoreFactory; //導入依賴的package包/類
@SuppressWarnings("unchecked")
@Before
public void initTeamCityContext() throws IOException
{
    Store<TeamCityGlobalConfiguration> store = mock(Store.class);
    StoreFactory storeFactory = mock(StoreFactory.class);
    when(storeFactory.getStore(Matchers.any(Class.class), Matchers.anyString())).thenReturn(store);

    context = new TeamCityContext(storeFactory);
}
 
開發者ID:corux,項目名稱:scm-teamcity-plugin,代碼行數:11,代碼來源:TeamCityContextTest.java

示例3: FisheyeContext

import sonia.scm.store.StoreFactory; //導入依賴的package包/類
/**
 * Constructor.
 *
 * @param storeFactory
 *            the store factory
 */
@Inject
public FisheyeContext(final StoreFactory storeFactory)
{
    store = storeFactory.getStore(FisheyeGlobalConfiguration.class, STORE_NAME);
    globalConfiguration = store.get();

    if (globalConfiguration == null)
    {
        globalConfiguration = new FisheyeGlobalConfiguration();
    }
}
 
開發者ID:corux,項目名稱:scm-fisheye-plugin,代碼行數:18,代碼來源:FisheyeContext.java

示例4: initFisheyeContext

import sonia.scm.store.StoreFactory; //導入依賴的package包/類
@SuppressWarnings("unchecked")
@Before
public void initFisheyeContext() throws IOException
{
    Store<FisheyeGlobalConfiguration> store = mock(Store.class);
    StoreFactory storeFactory = mock(StoreFactory.class);
    when(storeFactory.getStore(Matchers.any(Class.class), Matchers.anyString())).thenReturn(store);

    context = new FisheyeContext(storeFactory);
}
 
開發者ID:corux,項目名稱:scm-fisheye-plugin,代碼行數:11,代碼來源:FisheyeContextTest.java

示例5: MegamHookContext

import sonia.scm.store.StoreFactory; //導入依賴的package包/類
/**
 * Constructs ...
 *
 *
 * @param storeFactory
 */
@Inject
public MegamHookContext(StoreFactory storeFactory)
{
  this.store = storeFactory.getStore(MegamHookConfiguration.class, STORE_NAME);
  globalConfiguration = store.get();

  if (globalConfiguration == null)
  {
    globalConfiguration = new MegamHookConfiguration();
  }
}
 
開發者ID:megamsys,項目名稱:scm-megam-plugin,代碼行數:18,代碼來源:MegamHookContext.java


注:本文中的sonia.scm.store.StoreFactory類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。