本文整理匯總了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();
}
}
示例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);
}
示例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();
}
}
示例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);
}
示例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();
}
}