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 TypeMethodDescriptionvoidaddEventListener(FlowableEventListener listenerToAdd) voidaddEventListener(FlowableEventListener listenerToAdd, FlowableEventType... types) protected voidaddTypedEventListener(FlowableEventListener listener, FlowableEventType type) voiddispatchEvent(FlowableEvent event) protected voiddispatchEvent(FlowableEvent event, FlowableEventListener listener) protected voiddispatchNormalEventListener(FlowableEvent event, FlowableEventListener listener) protected voiddispatchTransactionEventListener(FlowableEvent event, FlowableEventListener listener) voidremoveEventListener(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
-