org.jbpm.services.cdi.impl.manager
Class RuntimeManagerProducer
java.lang.Object
org.jbpm.services.cdi.impl.manager.RuntimeManagerProducer
@ApplicationScoped
public class RuntimeManagerProducer
- extends Object
Producer method used to build instances of RuntimeManager
automatically by CDI container.
It contains dedicated producer methods for all supported manager types:
- singleton
- per request
- per process instance
It requires two bean injected that are required for successful instantiation of RuntimeManager
:
RuntimeEnvironment
RuntimeManagerFactory
Injections are controlled with qualifiers so same should be used at injection points that should receive them
- See Also:
Singleton
,
PerRequest
,
PerProcessInstance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeManagerProducer
public RuntimeManagerProducer()
newSingletonRuntimeManager
@Produces
public RuntimeManager newSingletonRuntimeManager()
newPerRequestRuntimeManager
@Produces
public RuntimeManager newPerRequestRuntimeManager()
newPerProcessInstanceRuntimeManager
@Produces
public RuntimeManager newPerProcessInstanceRuntimeManager()
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.