|
jBPM distribution 6.1.0.Beta3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.runtime.manager.impl.SimpleRegisterableItemsFactory
public class SimpleRegisterableItemsFactory
The most basic RegisterableItemsFactory
implementation that allows to define listeners and work
item handlers by their class and whenever they will be required new instance will be created out of the given
Class
instance.
It's construction is limited to only two options:
KieSession
Constructor Summary | |
---|---|
SimpleRegisterableItemsFactory()
|
Method Summary | ||
---|---|---|
void |
addAgendaListener(Class<? extends AgendaEventListener> clazz)
|
|
void |
addGlobal(String name,
Object global)
|
|
void |
addProcessListener(Class<? extends ProcessEventListener> clazz)
|
|
void |
addTaskListener(Class<? extends TaskLifeCycleEventListener> clazz)
|
|
void |
addWorkingMemoryListener(Class<? extends RuleRuntimeEventListener> clazz)
|
|
void |
addWorkItemHandler(String name,
Class<? extends WorkItemHandler> clazz)
|
|
protected
|
createInstance(Class<T> clazz,
RuntimeEngine engine)
|
|
List<AgendaEventListener> |
getAgendaEventListeners(RuntimeEngine runtime)
Returns new instances of AgendaEventListener that will be registered on RuntimeEngine |
|
Map<String,Object> |
getGlobals(RuntimeEngine runtime)
Returns globals that shall be registered on KieSession . |
|
List<ProcessEventListener> |
getProcessEventListeners(RuntimeEngine runtime)
Returns new instances of ProcessEventListener that will be registered on RuntimeEngine |
|
List<RuleRuntimeEventListener> |
getRuleRuntimeEventListeners(RuntimeEngine runtime)
Returns new instances of RuleRuntimeEventListener that will be registered on RuntimeEngine |
|
List<TaskLifeCycleEventListener> |
getTaskListeners()
Return new instances of TaskLifeCycleEventListener that will be registered on RuntimeEngine . |
|
Map<String,WorkItemHandler> |
getWorkItemHandlers(RuntimeEngine runtime)
Returns new instances of WorkItemHandler that will be registered on RuntimeEngine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleRegisterableItemsFactory()
Method Detail |
---|
public Map<String,WorkItemHandler> getWorkItemHandlers(RuntimeEngine runtime)
RegisterableItemsFactory
WorkItemHandler
that will be registered on RuntimeEngine
getWorkItemHandlers
in interface RegisterableItemsFactory
runtime
- provides RuntimeEngine
in case handler need to make use of it internally
public List<ProcessEventListener> getProcessEventListeners(RuntimeEngine runtime)
RegisterableItemsFactory
ProcessEventListener
that will be registered on RuntimeEngine
getProcessEventListeners
in interface RegisterableItemsFactory
runtime
- provides RuntimeEngine
in case listeners need to make use of it internally
public List<AgendaEventListener> getAgendaEventListeners(RuntimeEngine runtime)
RegisterableItemsFactory
AgendaEventListener
that will be registered on RuntimeEngine
getAgendaEventListeners
in interface RegisterableItemsFactory
runtime
- provides RuntimeEngine
in case listeners need to make use of it internally
public List<RuleRuntimeEventListener> getRuleRuntimeEventListeners(RuntimeEngine runtime)
RegisterableItemsFactory
RuleRuntimeEventListener
that will be registered on RuntimeEngine
getRuleRuntimeEventListeners
in interface RegisterableItemsFactory
runtime
- provides RuntimeEngine
in case listeners need to make use of it internally
public List<TaskLifeCycleEventListener> getTaskListeners()
RegisterableItemsFactory
TaskLifeCycleEventListener
that will be registered on RuntimeEngine
.
getTaskListeners
in interface RegisterableItemsFactory
public Map<String,Object> getGlobals(RuntimeEngine runtime)
RegisterableItemsFactory
KieSession
.
getGlobals
in interface RegisterableItemsFactory
runtime
- provides RuntimeEngine
in case globals need to make use of it internally
public void addWorkItemHandler(String name, Class<? extends WorkItemHandler> clazz)
public void addProcessListener(Class<? extends ProcessEventListener> clazz)
public void addAgendaListener(Class<? extends AgendaEventListener> clazz)
public void addWorkingMemoryListener(Class<? extends RuleRuntimeEventListener> clazz)
public void addGlobal(String name, Object global)
public void addTaskListener(Class<? extends TaskLifeCycleEventListener> clazz)
protected <T> T createInstance(Class<T> clazz, RuntimeEngine engine)
|
jBPM distribution 6.1.0.Beta3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |