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 ofFlow
in 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 boolean
m_FlowExecutionListeningEnabled
whether listening is enabled.protected FlowExecutionListener
m_Listener
the listener to use.
-
Constructor Summary
Constructors Constructor Description DefaultFlowExecutionListeningSupporter()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canStartListeningAtRuntime()
Returns whether listeners can be attached at runtime.FlowExecutionListener
getFlowExecutionListener()
Returns the current listener in use.boolean
isFlowExecutionListeningEnabled()
Returns whether flow execution listening is enabled.void
setFlowExecutionListener(FlowExecutionListener l)
Sets the listener to use.void
setFlowExecutionListeningEnabled(boolean value)
Sets whether flow execution listening is enabled.boolean
startListeningAtRuntime(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:
setFlowExecutionListeningEnabled
in interfaceFlowExecutionListeningSupporter
- Parameters:
value
- true if to enable listening
-
isFlowExecutionListeningEnabled
public boolean isFlowExecutionListeningEnabled()
Returns whether flow execution listening is enabled.- Specified by:
isFlowExecutionListeningEnabled
in interfaceFlowExecutionListeningSupporter
- Returns:
- true if listening is enabled
-
setFlowExecutionListener
public void setFlowExecutionListener(FlowExecutionListener l)
Sets the listener to use.- Specified by:
setFlowExecutionListener
in interfaceFlowExecutionListeningSupporter
- Parameters:
l
- the listener to use
-
getFlowExecutionListener
public FlowExecutionListener getFlowExecutionListener()
Returns the current listener in use.- Specified by:
getFlowExecutionListener
in interfaceFlowExecutionListeningSupporter
- Returns:
- the listener
-
canStartListeningAtRuntime
public boolean canStartListeningAtRuntime()
Returns whether listeners can be attached at runtime.- Specified by:
canStartListeningAtRuntime
in interfaceFlowExecutionListeningSupporter
- Returns:
- always false
-
startListeningAtRuntime
public boolean startListeningAtRuntime(FlowExecutionListener l)
Attaches the listener and starts listening.- Specified by:
startListeningAtRuntime
in interfaceFlowExecutionListeningSupporter
- Parameters:
l
- the listener to attach and use immediately- Returns:
- always false
-
-