Package org.activiti.engine.test.mock
Class MockResolverFactory
- java.lang.Object
-
- org.activiti.engine.test.mock.MockResolverFactory
-
- All Implemented Interfaces:
ResolverFactory
public class MockResolverFactory extends java.lang.Object implements ResolverFactory
This is a bridge resolver, making available any objects registered throughMocks.register(java.lang.String, java.lang.Object)inside scripts supported by Activiti.
In order to use it, you need to declare it as ResolverFactory, for example by using activiti.cfg.xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration"
class="org.activiti.engine.impl.cfg. StandaloneInMemProcessEngineConfiguration">
<property name="jobExecutorActivate" value="false" />
<property name="expressionManager">
<bean class="org.activiti.engine.test.mock.MockExpressionManager" />
</property>
<property name="resolverFactories">
<list>
<bean class="org.activiti.engine.impl.scripting.VariableScopeResolverFactory " />
<bean class="org.activiti.engine.impl.scripting.BeansResolverFactory" />
<bean class="com.deenero.activiti.MockResolverFactory" />
</list>
</property>
</bean>
</beans>
or by any other means of creating configuration.
-
-
Constructor Summary
Constructors Constructor Description MockResolverFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvercreateResolver(ProcessEngineConfigurationImpl processEngineConfiguration, VariableScope variableScope)
-
-
-
Method Detail
-
createResolver
public Resolver createResolver(ProcessEngineConfigurationImpl processEngineConfiguration, VariableScope variableScope)
- Specified by:
createResolverin interfaceResolverFactory
-
-