本文整理汇总了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);
}
}
示例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();
}
示例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;
}
示例6: setResolverFactories
import org.camunda.bpm.engine.impl.scripting.engine.ResolverFactory; //导入依赖的package包/类
public void setResolverFactories(List<ResolverFactory> resolverFactories) {
this.resolverFactories = resolverFactories;
}