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