public interface ActivitiEventDispatcher
ActivitiEventListener
s to the Activiti Engine as well as dispatching ActivitiEvent
to all the listeners registered.Modifier and Type | Method and Description |
---|---|
void |
addEventListener(ActivitiEventListener listenerToAdd)
Adds an event-listener which will be notified of ALL events by the dispatcher.
|
void |
addEventListener(ActivitiEventListener listenerToAdd,
ActivitiEventType... types)
Adds an event-listener which will only be notified when an event of the given types occurs.
|
void |
dispatchEvent(ActivitiEvent event)
Dispatches the given event to any listeners that are registered.
|
boolean |
isEnabled() |
void |
removeEventListener(ActivitiEventListener listenerToRemove)
Removes the given listener from this dispatcher.
|
void |
setEnabled(boolean enabled) |
void addEventListener(ActivitiEventListener listenerToAdd)
listenerToAdd
- the listener to addvoid addEventListener(ActivitiEventListener listenerToAdd, ActivitiEventType... types)
listenerToAdd
- the listener to addtypes
- types of events the listener should be notified forvoid removeEventListener(ActivitiEventListener listenerToRemove)
listenerToRemove
- listener to removevoid dispatchEvent(ActivitiEvent event)
event
- event to dispatch.void setEnabled(boolean enabled)
enabled
- true, if event dispatching should be enabled.boolean isEnabled()
Copyright © 2017 Alfresco. All rights reserved.