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 SummaryNested Classes Modifier and Type Interface Description static classRuntimeManagerFactory.FactoryA Factory for this RuntimeManagerFactory
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description RuntimeManagernewPerCaseRuntimeManager(RuntimeEnvironment environment)Produces new instance of per caseRuntimeManagerwith default identifier.RuntimeManagernewPerCaseRuntimeManager(RuntimeEnvironment environment, 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, 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, String identifier)Produces new instance of per requestRuntimeManagerwith custom identifier.RuntimeManagernewSingletonRuntimeManager(RuntimeEnvironment environment)Produces new instance of singletonRuntimeManagerwith default identifier.RuntimeManagernewSingletonRuntimeManager(RuntimeEnvironment environment, String identifier)Produces new instance of singletonRuntimeManagerwith custom identifier.
 
- 
- 
- 
Method Detail- 
newSingletonRuntimeManagerRuntimeManager 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
 
 - 
newSingletonRuntimeManagerRuntimeManager newSingletonRuntimeManager(RuntimeEnvironment environment, 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 manager
- identifier- custom identifier for the manager
- Returns:
- new instance of RuntimeManager
 
 - 
newPerRequestRuntimeManagerRuntimeManager 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
 
 - 
newPerRequestRuntimeManagerRuntimeManager newPerRequestRuntimeManager(RuntimeEnvironment environment, 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 manager
- identifier- custom identifier for the manager
- Returns:
- new instance of RuntimeManager
 
 - 
newPerProcessInstanceRuntimeManagerRuntimeManager 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
 
 - 
newPerProcessInstanceRuntimeManagerRuntimeManager newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment, 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 manager
- identifier- custom identifier for the manager
- Returns:
- new instance of RuntimeManager
 
 - 
newPerCaseRuntimeManagerRuntimeManager 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
 
 - 
newPerCaseRuntimeManagerRuntimeManager newPerCaseRuntimeManager(RuntimeEnvironment environment, 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 manager
- identifier- custom identifier for the manager
- Returns:
- new instance of RuntimeManager
 
 
- 
 
-