当前位置: 首页>>代码示例>>Java>>正文


Java ResolverFactory类代码示例

本文整理汇总了Java中org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory的典型用法代码示例。如果您正苦于以下问题:Java ResolverFactory类的具体用法?Java ResolverFactory怎么用?Java ResolverFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ResolverFactory类属于org.camunda.bpm.engine.impl.scripting.engine包,在下文中一共展示了ResolverFactory类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initWithResolverFactories

import org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory; //导入依赖的package包/类
@Test
public void initWithResolverFactories() throws Exception {
	StandaloneProcessEngineConfiguration config = mock(StandaloneProcessEngineConfiguration.class);
	ResolverFactory resolverFactory = mock(ResolverFactory.class);
	when(config.getResolverFactories()).thenReturn(
			Collections.singletonList(resolverFactory));
	factory.setProcessEngineConfiguration(config);
	factory.init();
	// captures
	ArgumentCaptor<OsgiScriptingEngines> scriptCaptor = ArgumentCaptor
			.forClass(OsgiScriptingEngines.class);
	verify(config).setScriptingEngines(scriptCaptor.capture());
	// checks
	assertThat(scriptCaptor.getValue().getScriptBindingsFactory()
			.getResolverFactories(), hasItem(resolverFactory));
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform-osgi,代码行数:17,代码来源:ProcessEngineFactoryWithELResolverTest.java

示例2: initScripting

import org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory; //导入依赖的package包/类
protected void initScripting() {
  if (resolverFactories == null) {
    resolverFactories = new ArrayList<ResolverFactory>();
    resolverFactories.add(new MocksResolverFactory());
    resolverFactories.add(new VariableScopeResolverFactory());
    resolverFactories.add(new BeansResolverFactory());
  }
  if (scriptingEngines == null) {
    scriptingEngines = new ScriptingEngines(new ScriptBindingsFactory(resolverFactories));
    scriptingEngines.setEnableScriptEngineCaching(enableScriptEngineCaching);
  }
  if (scriptFactory == null) {
    scriptFactory = new ScriptFactory();
  }
  if (scriptEnvResolvers == null) {
    scriptEnvResolvers = new ArrayList<ScriptEnvResolver>();
  }
  if (scriptingEnvironment == null) {
    scriptingEnvironment = new ScriptingEnvironment(scriptFactory, scriptEnvResolvers, scriptingEngines);
  }
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:22,代码来源:ProcessEngineConfigurationImpl.java

示例3: init

import org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory; //导入依赖的package包/类
@Override
public void init() {
  ProcessEngineConfigurationImpl configImpl = (ProcessEngineConfigurationImpl) getProcessEngineConfiguration();
  configImpl.setExpressionManager(expressionManager);
  
  List<ResolverFactory> resolverFactories = configImpl.getResolverFactories();
  if (resolverFactories == null) {
    resolverFactories = new ArrayList<ResolverFactory>();
    resolverFactories.add(new VariableScopeResolverFactory());
    resolverFactories.add(new BeansResolverFactory());
  }
  
  configImpl.setScriptingEngines(new OsgiScriptingEngines(new ScriptBindingsFactory(resolverFactories)));
  super.init();
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform-osgi,代码行数:16,代码来源:ProcessEngineFactoryWithELResolver.java

示例4: checkScriptingEngine

import org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory; //导入依赖的package包/类
private void checkScriptingEngine(OsgiScriptingEngines scriptingEngine) {
	assertThat(scriptingEngine, isA(OsgiScriptingEngines.class));
	List<ResolverFactory> resolverFactories = scriptingEngine
			.getScriptBindingsFactory().getResolverFactories();
	assertThat(resolverFactories.size(), is(2));
	Matcher<Iterable<? super VariableScopeResolverFactory>> hasItem = hasItem(isA(VariableScopeResolverFactory.class));
	assertThat(resolverFactories,
			hasItem);
	Matcher<Iterable<? super BeansResolverFactory>> hasItem2 = hasItem(isA(BeansResolverFactory.class));
	assertThat(resolverFactories, hasItem2);
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform-osgi,代码行数:12,代码来源:ProcessEngineFactoryWithELResolverTest.java

示例5: getResolverFactories

import org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory; //导入依赖的package包/类
public List<ResolverFactory> getResolverFactories() {
  return resolverFactories;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java

示例6: setResolverFactories

import org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory; //导入依赖的package包/类
public void setResolverFactories(List<ResolverFactory> resolverFactories) {
  this.resolverFactories = resolverFactories;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java


注:本文中的org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。