public class FlowEventListenerSubject extends Object implements FlowEventListener, FlowSubject
| Constructor and Description |
|---|
FlowEventListenerSubject(ReplicationFactory<FlowEvent> replicationFactory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addObserver(FlowObserver flowObserver)
Add the specified observer
|
void |
afterFlowElement(String moduleName,
String flowName,
FlowElement flowElement,
FlowEvent event)
Captures the details of the flow component and event in flight.
|
void |
beforeFlowElement(String moduleName,
String flowName,
FlowElement flowElement,
FlowEvent event)
Does nothing in this implementation as we are only interested in the
afterFlowElement operations for event capture.
|
protected List<FlowObserver> |
initFlowObservers()
Utility method for initialising the flow observers list implemented
for ease of testing.
|
void |
removeAllObservers()
Remove all observers
|
void |
removeObserver(FlowObserver flowObserver)
Remove the specified observer
|
void |
setIgnoreEventCapture(boolean ignoreEventCapture)
Allow override of the event capture status.
|
public FlowEventListenerSubject(ReplicationFactory<FlowEvent> replicationFactory)
public void setIgnoreEventCapture(boolean ignoreEventCapture)
setIgnoreEventCapture in interface FlowSubjectignoreEventCapture - protected List<FlowObserver> initFlowObservers()
public void beforeFlowElement(String moduleName, String flowName, FlowElement flowElement, FlowEvent event)
beforeFlowElement in interface FlowEventListenermoduleName - flowName - flowElement - event - public void afterFlowElement(String moduleName, String flowName, FlowElement flowElement, FlowEvent event)
afterFlowElement in interface FlowEventListenermoduleName - flowName - flowElement - event - public void addObserver(FlowObserver flowObserver)
addObserver in interface FlowSubjectflowObserver - public void removeObserver(FlowObserver flowObserver)
removeObserver in interface FlowSubjectflowObserver - public void removeAllObservers()
removeAllObservers in interface FlowSubjectCopyright © 2007-2017 Ikasan. All Rights Reserved.