Package adams.flow.execution
Class DefaultFlowExecutionListeningSupporter
- java.lang.Object
-
- adams.flow.execution.DefaultFlowExecutionListeningSupporter
-
- All Implemented Interfaces:
FlowExecutionListeningSupporter,Serializable
public class DefaultFlowExecutionListeningSupporter extends Object implements Serializable, FlowExecutionListeningSupporter
Default supporter that can be used instead ofFlowin case of running actors outside a flow.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_FlowExecutionListeningEnabledwhether listening is enabled.protected FlowExecutionListenerm_Listenerthe listener to use.
-
Constructor Summary
Constructors Constructor Description DefaultFlowExecutionListeningSupporter()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanStartListeningAtRuntime()Returns whether listeners can be attached at runtime.FlowExecutionListenergetFlowExecutionListener()Returns the current listener in use.booleanisFlowExecutionListeningEnabled()Returns whether flow execution listening is enabled.voidsetFlowExecutionListener(FlowExecutionListener l)Sets the listener to use.voidsetFlowExecutionListeningEnabled(boolean value)Sets whether flow execution listening is enabled.booleanstartListeningAtRuntime(FlowExecutionListener l)Attaches the listener and starts listening.
-
-
-
Field Detail
-
m_FlowExecutionListeningEnabled
protected boolean m_FlowExecutionListeningEnabled
whether listening is enabled.
-
m_Listener
protected FlowExecutionListener m_Listener
the listener to use.
-
-
Method Detail
-
setFlowExecutionListeningEnabled
public void setFlowExecutionListeningEnabled(boolean value)
Sets whether flow execution listening is enabled.- Specified by:
setFlowExecutionListeningEnabledin interfaceFlowExecutionListeningSupporter- Parameters:
value- true if to enable listening
-
isFlowExecutionListeningEnabled
public boolean isFlowExecutionListeningEnabled()
Returns whether flow execution listening is enabled.- Specified by:
isFlowExecutionListeningEnabledin interfaceFlowExecutionListeningSupporter- Returns:
- true if listening is enabled
-
setFlowExecutionListener
public void setFlowExecutionListener(FlowExecutionListener l)
Sets the listener to use.- Specified by:
setFlowExecutionListenerin interfaceFlowExecutionListeningSupporter- Parameters:
l- the listener to use
-
getFlowExecutionListener
public FlowExecutionListener getFlowExecutionListener()
Returns the current listener in use.- Specified by:
getFlowExecutionListenerin interfaceFlowExecutionListeningSupporter- Returns:
- the listener
-
canStartListeningAtRuntime
public boolean canStartListeningAtRuntime()
Returns whether listeners can be attached at runtime.- Specified by:
canStartListeningAtRuntimein interfaceFlowExecutionListeningSupporter- Returns:
- always false
-
startListeningAtRuntime
public boolean startListeningAtRuntime(FlowExecutionListener l)
Attaches the listener and starts listening.- Specified by:
startListeningAtRuntimein interfaceFlowExecutionListeningSupporter- Parameters:
l- the listener to attach and use immediately- Returns:
- always false
-
-