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 TypeMethodDescriptionvoid
addEventListener
(FlowableEventListener listenerToAdd) Adds an event-listener which will be notified of ALL events by the dispatcher.void
addEventListener
(FlowableEventListener listenerToAdd, FlowableEventType... types) Adds an event-listener which will only be notified when an event of the given types occurs.void
dispatchEvent
(FlowableEvent event, String engineType) Dispatches the given event to any listeners that are registered.boolean
void
removeEventListener
(FlowableEventListener listenerToRemove) Removes the given listener from this dispatcher.void
setEnabled
(boolean enabled) void
setEventSupport
(FlowableEventSupport eventSupport)
-
Field Details
-
eventSupport
-
enabled
protected boolean enabled
-
-
Constructor Details
-
FlowableEventDispatcherImpl
public FlowableEventDispatcherImpl()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceFlowableEventDispatcher
- Parameters:
enabled
- true, if event dispatching should be enabled.
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceFlowableEventDispatcher
- Returns:
- true, if event dispatcher is enabled.
-
addEventListener
Description copied from interface:FlowableEventDispatcher
Adds an event-listener which will be notified of ALL events by the dispatcher.- Specified by:
addEventListener
in interfaceFlowableEventDispatcher
- Parameters:
listenerToAdd
- the listener to add
-
addEventListener
Description copied from interface:FlowableEventDispatcher
Adds an event-listener which will only be notified when an event of the given types occurs.- Specified by:
addEventListener
in interfaceFlowableEventDispatcher
- Parameters:
listenerToAdd
- the listener to addtypes
- types of events the listener should be notified for
-
removeEventListener
Description copied from interface:FlowableEventDispatcher
Removes 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:
removeEventListener
in interfaceFlowableEventDispatcher
- Parameters:
listenerToRemove
- listener to remove
-
dispatchEvent
Description copied from interface:FlowableEventDispatcher
Dispatches the given event to any listeners that are registered.- Specified by:
dispatchEvent
in interfaceFlowableEventDispatcher
- Parameters:
event
- event to dispatch.engineType
- type of engine to dispatch
-
getEventSupport
-
setEventSupport
-