Package org.kie.api.runtime.manager
Interface RuntimeManagerFactory
-
public interface RuntimeManagerFactory
Factory that produces instances ofRuntimeManager
. 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 propertyorg.jbpm.runtime.manager.class
that should provide fully qualified class name of the class that implements this factory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RuntimeManagerFactory.Factory
A Factory for this RuntimeManagerFactory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RuntimeManager
newPerCaseRuntimeManager(RuntimeEnvironment environment)
Produces new instance of per caseRuntimeManager
with default identifier.RuntimeManager
newPerCaseRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)
Produces new instance of per caseRuntimeManager
with custom identifier.RuntimeManager
newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment)
Produces new instance of per process instanceRuntimeManager
with default identifier.RuntimeManager
newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)
Produces new instance of per process instanceRuntimeManager
with custom identifier.RuntimeManager
newPerRequestRuntimeManager(RuntimeEnvironment environment)
Produces new instance of per requestRuntimeManager
with default identifier.RuntimeManager
newPerRequestRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)
Produces new instance of per requestRuntimeManager
with custom identifier.RuntimeManager
newSingletonRuntimeManager(RuntimeEnvironment environment)
Produces new instance of singletonRuntimeManager
with default identifier.RuntimeManager
newSingletonRuntimeManager(RuntimeEnvironment environment, java.lang.String identifier)
Produces new instance of singletonRuntimeManager
with custom identifier.
-
-
-
Method Detail
-
newSingletonRuntimeManager
RuntimeManager newSingletonRuntimeManager(RuntimeEnvironment environment)
Produces new instance of singletonRuntimeManager
with 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 singletonRuntimeManager
with 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 requestRuntimeManager
with 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 requestRuntimeManager
with 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 instanceRuntimeManager
with 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 instanceRuntimeManager
with 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 caseRuntimeManager
with 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 caseRuntimeManager
with 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
-
-