Package org.kie.api.runtime.manager
Interface RuntimeManagerFactory
-
public interface RuntimeManagerFactoryFactory that produces instances ofRuntimeManager. It allows to produce runtime managers based on predefined strategies:- Singleton
- PerRequest
- PerProcessInstance
org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImplas implementation of the factory but can be overridden using system propertyorg.jbpm.runtime.manager.classthat should provide fully qualified class name of the class that implements this factory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRuntimeManagerFactory.FactoryA Factory for this RuntimeManagerFactory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuntimeManagernewPerCaseRuntimeManager(RuntimeEnvironment environment)Produces new instance of per caseRuntimeManagerwith default identifier.RuntimeManagernewPerCaseRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)Produces new instance of per caseRuntimeManagerwith custom identifier.RuntimeManagernewPerProcessInstanceRuntimeManager(RuntimeEnvironment environment)Produces new instance of per process instanceRuntimeManagerwith default identifier.RuntimeManagernewPerProcessInstanceRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)Produces new instance of per process instanceRuntimeManagerwith custom identifier.RuntimeManagernewPerRequestRuntimeManager(RuntimeEnvironment environment)Produces new instance of per requestRuntimeManagerwith default identifier.RuntimeManagernewPerRequestRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)Produces new instance of per requestRuntimeManagerwith custom identifier.RuntimeManagernewSingletonRuntimeManager(RuntimeEnvironment environment)Produces new instance of singletonRuntimeManagerwith default identifier.RuntimeManagernewSingletonRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)Produces new instance of singletonRuntimeManagerwith custom identifier.
-
-
-
Method Detail
-
newSingletonRuntimeManager
RuntimeManager newSingletonRuntimeManager(RuntimeEnvironment environment)
Produces new instance of singletonRuntimeManagerwith default identifier. Since it relies on default identifier it can only be invoked once unless previously produced manager is closed. Otherwise error will be thrown indicating that managers must be identifier uniquely.- Parameters:
environment- environment instance for the new runtime manager- Returns:
- new instance of
RuntimeManager
-
newSingletonRuntimeManager
RuntimeManager newSingletonRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)
Produces new instance of singletonRuntimeManagerwith custom identifier. In case the given identifier is already in use error will be thrown indicating that managers must be identifier uniquely.- Parameters:
environment- environment instance for the new runtime manageridentifier- custom identifier for the manager- Returns:
- new instance of
RuntimeManager
-
newPerRequestRuntimeManager
RuntimeManager newPerRequestRuntimeManager(RuntimeEnvironment environment)
Produces new instance of per requestRuntimeManagerwith default identifier. Since it relies on default identifier it can only be invoked once unless previously produced manager is closed. Otherwise error will be thrown indicating that managers must be identifier uniquely.- Parameters:
environment- environment instance for the new runtime manager- Returns:
- new instance of
RuntimeManager
-
newPerRequestRuntimeManager
RuntimeManager newPerRequestRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)
Produces new instance of per requestRuntimeManagerwith custom identifier. In case the given identifier is already in use error will be thrown indicating that managers must be identifier uniquely.- Parameters:
environment- environment instance for the new runtime manageridentifier- custom identifier for the manager- Returns:
- new instance of
RuntimeManager
-
newPerProcessInstanceRuntimeManager
RuntimeManager newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment)
Produces new instance of per process instanceRuntimeManagerwith default identifier. Since it relies on default identifier it can only be invoked once unless previously produced manager is closed. Otherwise error will be thrown indicating that managers must be identifier uniquely.- Parameters:
environment- environment instance for the new runtime manager- Returns:
- new instance of
RuntimeManager
-
newPerProcessInstanceRuntimeManager
RuntimeManager newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)
Produces new instance of per process instanceRuntimeManagerwith custom identifier. In case the given identifier is already in use error will be thrown indicating that managers must be identifier uniquely.- Parameters:
environment- environment instance for the new runtime manageridentifier- custom identifier for the manager- Returns:
- new instance of
RuntimeManager
-
newPerCaseRuntimeManager
RuntimeManager newPerCaseRuntimeManager(RuntimeEnvironment environment)
Produces new instance of per caseRuntimeManagerwith default identifier. Since it relies on default identifier it can only be invoked once unless previously produced manager is closed. Otherwise error will be thrown indicating that managers must be identifier uniquely.- Parameters:
environment- environment instance for the new runtime manager- Returns:
- new instance of
RuntimeManager
-
newPerCaseRuntimeManager
RuntimeManager newPerCaseRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)
Produces new instance of per caseRuntimeManagerwith custom identifier. In case the given identifier is already in use error will be thrown indicating that managers must be identifier uniquely.- Parameters:
environment- environment instance for the new runtime manageridentifier- custom identifier for the manager- Returns:
- new instance of
RuntimeManager
-
-