com.googlecode.sarasvati.event
Interface ExecutionListener
- All Known Implementing Classes:
- DefaultExecutionEventQueue.RegisteredExecutionListener, ExecutionListenerWrapper, GraphDefinedEventListenerInvoker, ProcessDefinedEventListenerInvoker, TokenSetCompletionListener
public interface ExecutionListener
Listeners may be registered for events happening on a single GraphProcess
or
all processes. Listeners may in some cases influence how execution proceeds by returning
an EventActions
object.
Listeners may be stored a database by classname. They should therefore have a public
default (no-args) constructor.
- Author:
- Paul Lorenz
- See Also:
Engine.addExecutionListener(Class, ExecutionEventType...)
,
Engine.addExecutionListener(GraphProcess, Class, ExecutionEventType...)
,
EventActionType
notify
EventActions notify(ExecutionEvent event)
- Invoked by the
Engine
when an event of a type that this
listener has register for occurs. May return an EventActions
defining the actions to be performed or null.
- Parameters:
event
- The event which has just occurred.
- Returns:
- EventActions The set of requested
EventActionType
s or null.