Class FlowableEventDispatcherImpl
java.lang.Object
org.flowable.common.engine.impl.event.FlowableEventDispatcherImpl
- All Implemented Interfaces:
FlowableEventDispatcher
Class capable of dispatching events.
- Author:
- Frederik Heremans
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(FlowableEventListener listenerToAdd) Adds an event-listener which will be notified of ALL events by the dispatcher.voidaddEventListener(FlowableEventListener listenerToAdd, FlowableEventType... types) Adds an event-listener which will only be notified when an event of the given types occurs.voiddispatchEvent(FlowableEvent event, String engineType) Dispatches the given event to any listeners that are registered.booleanvoidremoveEventListener(FlowableEventListener listenerToRemove) Removes the given listener from this dispatcher.voidsetEnabled(boolean enabled) voidsetEventSupport(FlowableEventSupport eventSupport)
-
Field Details
-
eventSupport
-
enabled
protected boolean enabled
-
-
Constructor Details
-
FlowableEventDispatcherImpl
public FlowableEventDispatcherImpl()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceFlowableEventDispatcher- Parameters:
enabled- true, if event dispatching should be enabled.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceFlowableEventDispatcher- Returns:
- true, if event dispatcher is enabled.
-
addEventListener
Description copied from interface:FlowableEventDispatcherAdds an event-listener which will be notified of ALL events by the dispatcher.- Specified by:
addEventListenerin interfaceFlowableEventDispatcher- Parameters:
listenerToAdd- the listener to add
-
addEventListener
Description copied from interface:FlowableEventDispatcherAdds an event-listener which will only be notified when an event of the given types occurs.- Specified by:
addEventListenerin interfaceFlowableEventDispatcher- Parameters:
listenerToAdd- the listener to addtypes- types of events the listener should be notified for
-
removeEventListener
Description copied from interface:FlowableEventDispatcherRemoves the given listener from this dispatcher. The listener will no longer be notified, regardless of the type(s) it was registered for in the first place.- Specified by:
removeEventListenerin interfaceFlowableEventDispatcher- Parameters:
listenerToRemove- listener to remove
-
dispatchEvent
Description copied from interface:FlowableEventDispatcherDispatches the given event to any listeners that are registered.- Specified by:
dispatchEventin interfaceFlowableEventDispatcher- Parameters:
event- event to dispatch.engineType- type of engine to dispatch
-
getEventSupport
-
setEventSupport
-