Package org.kie.api.runtime.manager
Interface RuntimeManagerFactory
public interface RuntimeManagerFactory
Factory that produces instances of
RuntimeManager. It allows to produce
runtime managers based on predefined strategies:
- Singleton
- PerRequest
- PerProcessInstance
org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl as implementation
of the factory but can be overridden using system property org.jbpm.runtime.manager.class
that should provide fully qualified class name of the class that implements this factory.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA Factory for this RuntimeManagerFactory -
Method Summary
Modifier and TypeMethodDescriptionnewPerCaseRuntimeManager(RuntimeEnvironment environment) Produces new instance of per caseRuntimeManagerwith default identifier.newPerCaseRuntimeManager(RuntimeEnvironment environment, String identifier) Produces new instance of per caseRuntimeManagerwith custom identifier.newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment) Produces new instance of per process instanceRuntimeManagerwith default identifier.newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment, String identifier) Produces new instance of per process instanceRuntimeManagerwith custom identifier.newPerRequestRuntimeManager(RuntimeEnvironment environment) Produces new instance of per requestRuntimeManagerwith default identifier.newPerRequestRuntimeManager(RuntimeEnvironment environment, String identifier) Produces new instance of per requestRuntimeManagerwith custom identifier.newSingletonRuntimeManager(RuntimeEnvironment environment) Produces new instance of singletonRuntimeManagerwith default identifier.newSingletonRuntimeManager(RuntimeEnvironment environment, String identifier) Produces new instance of singletonRuntimeManagerwith custom identifier.
-
Method Details
-
newSingletonRuntimeManager
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
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
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
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
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, 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
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
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
-