public class FlowableEventDispatcherImpl extends Object implements FlowableEventDispatcher
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabled |
protected FlowableEventSupport |
eventSupport |
| Constructor and Description |
|---|
FlowableEventDispatcherImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
FlowableEventSupport |
getEventSupport() |
boolean |
isEnabled() |
void |
removeEventListener(FlowableEventListener listenerToRemove)
Removes the given listener from this dispatcher.
|
void |
setEnabled(boolean enabled) |
void |
setEventSupport(FlowableEventSupport eventSupport) |
protected FlowableEventSupport eventSupport
protected boolean enabled
public void setEnabled(boolean enabled)
setEnabled in interface FlowableEventDispatcherenabled - true, if event dispatching should be enabled.public boolean isEnabled()
isEnabled in interface FlowableEventDispatcherpublic void addEventListener(FlowableEventListener listenerToAdd)
FlowableEventDispatcheraddEventListener in interface FlowableEventDispatcherlistenerToAdd - the listener to addpublic void addEventListener(FlowableEventListener listenerToAdd, FlowableEventType... types)
FlowableEventDispatcheraddEventListener in interface FlowableEventDispatcherlistenerToAdd - the listener to addtypes - types of events the listener should be notified forpublic void removeEventListener(FlowableEventListener listenerToRemove)
FlowableEventDispatcherremoveEventListener in interface FlowableEventDispatcherlistenerToRemove - listener to removepublic void dispatchEvent(FlowableEvent event, String engineType)
FlowableEventDispatcherdispatchEvent in interface FlowableEventDispatcherevent - event to dispatch.engineType - type of engine to dispatchpublic FlowableEventSupport getEventSupport()
public void setEventSupport(FlowableEventSupport eventSupport)
Copyright © 2023 Flowable. All rights reserved.