当前位置: 首页>>代码示例>>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;未经允许,请勿转载。