|
jBPM distribution 6.1.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl
@ApplicationScoped public class RuntimeManagerFactoryImpl
Main entry point class for RuntimeManager module responsible for delivering RuntimeManager
instances based on given RuntimeEnvironment
.
It can be used in both CDI and non CDI environments although it does not produce RuntimeManager instance for CDI
automatically but would be more used as injection to other beans that might be interested in creating
RuntimeManager
instances on demand.
This factory will try to discover several services before building RuntimeManager:
SchedulerService
is given will create GlobalTimerService
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.kie.api.runtime.manager.RuntimeManagerFactory |
---|
RuntimeManagerFactory.Factory |
Constructor Summary | |
---|---|
RuntimeManagerFactoryImpl()
|
Method Summary | |
---|---|
protected org.kie.internal.runtime.manager.SessionFactory |
getSessionFactory(RuntimeEnvironment environment)
|
protected org.kie.internal.runtime.manager.TaskServiceFactory |
getTaskServiceFactory(RuntimeEnvironment environment)
|
protected void |
initTimerService(RuntimeEnvironment environment,
RuntimeManager manager)
|
RuntimeManager |
newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment)
Produces new instance of per process instance RuntimeManager with default identifier. |
RuntimeManager |
newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment,
String identifier)
Produces new instance of per process instance RuntimeManager with custom identifier. |
RuntimeManager |
newPerRequestRuntimeManager(RuntimeEnvironment environment)
Produces new instance of per request RuntimeManager with default identifier. |
RuntimeManager |
newPerRequestRuntimeManager(RuntimeEnvironment environment,
String identifier)
Produces new instance of per request RuntimeManager with custom identifier. |
RuntimeManager |
newSingletonRuntimeManager(RuntimeEnvironment environment)
Produces new instance of singleton RuntimeManager with default identifier. |
RuntimeManager |
newSingletonRuntimeManager(RuntimeEnvironment environment,
String identifier)
Produces new instance of singleton RuntimeManager with custom identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeManagerFactoryImpl()
Method Detail |
---|
public RuntimeManager newSingletonRuntimeManager(RuntimeEnvironment environment)
RuntimeManagerFactory
RuntimeManager
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.
newSingletonRuntimeManager
in interface RuntimeManagerFactory
environment
- environment instance for the new runtime manager
RuntimeManager
public RuntimeManager newSingletonRuntimeManager(RuntimeEnvironment environment, String identifier)
RuntimeManagerFactory
RuntimeManager
with custom identifier.
In case the given identifier is already in use error will be thrown indicating that managers must be identifier uniquely.
newSingletonRuntimeManager
in interface RuntimeManagerFactory
environment
- environment instance for the new runtime manageridentifier
- custom identifier for the managerpublic RuntimeManager newPerRequestRuntimeManager(RuntimeEnvironment environment)
RuntimeManagerFactory
RuntimeManager
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.
newPerRequestRuntimeManager
in interface RuntimeManagerFactory
environment
- environment instance for the new runtime manager
RuntimeManager
public RuntimeManager newPerRequestRuntimeManager(RuntimeEnvironment environment, String identifier)
RuntimeManagerFactory
RuntimeManager
with custom identifier.
In case the given identifier is already in use error will be thrown indicating that managers must be identifier uniquely.
newPerRequestRuntimeManager
in interface RuntimeManagerFactory
environment
- environment instance for the new runtime manageridentifier
- custom identifier for the managerpublic RuntimeManager newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment)
RuntimeManagerFactory
RuntimeManager
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.
newPerProcessInstanceRuntimeManager
in interface RuntimeManagerFactory
environment
- environment instance for the new runtime manager
RuntimeManager
public RuntimeManager newPerProcessInstanceRuntimeManager(RuntimeEnvironment environment, String identifier)
RuntimeManagerFactory
RuntimeManager
with custom identifier.
In case the given identifier is already in use error will be thrown indicating that managers must be identifier uniquely.
newPerProcessInstanceRuntimeManager
in interface RuntimeManagerFactory
environment
- environment instance for the new runtime manageridentifier
- custom identifier for the managerprotected org.kie.internal.runtime.manager.SessionFactory getSessionFactory(RuntimeEnvironment environment)
protected org.kie.internal.runtime.manager.TaskServiceFactory getTaskServiceFactory(RuntimeEnvironment environment)
protected void initTimerService(RuntimeEnvironment environment, RuntimeManager manager)
|
jBPM distribution 6.1.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |