Class FlowableEventSupport
java.lang.Object
org.flowable.common.engine.impl.event.FlowableEventSupport
Class that allows adding and removing event listeners and dispatching events to the appropriate listeners.
- Author:
- Frederik Heremans
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<FlowableEventListener>
protected Map<FlowableEventType,
List<FlowableEventListener>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener
(FlowableEventListener listenerToAdd) void
addEventListener
(FlowableEventListener listenerToAdd, FlowableEventType... types) protected void
addTypedEventListener
(FlowableEventListener listener, FlowableEventType type) void
dispatchEvent
(FlowableEvent event) protected void
dispatchEvent
(FlowableEvent event, FlowableEventListener listener) protected void
dispatchNormalEventListener
(FlowableEvent event, FlowableEventListener listener) protected void
dispatchTransactionEventListener
(FlowableEvent event, FlowableEventListener listener) void
removeEventListener
(FlowableEventListener listenerToRemove)
-
Field Details
-
eventListeners
-
typedListeners
-
-
Constructor Details
-
FlowableEventSupport
public FlowableEventSupport()
-
-
Method Details
-
addEventListener
-
addEventListener
-
removeEventListener
-
dispatchEvent
-
dispatchEvent
-
dispatchNormalEventListener
-
dispatchTransactionEventListener
protected void dispatchTransactionEventListener(FlowableEvent event, FlowableEventListener listener) -
addTypedEventListener
-