本文整理汇总了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();
}
}