com.googlecode.sarasvati.event
Class DefaultExecutionEventQueue.RegisteredExecutionListener
java.lang.Object
com.googlecode.sarasvati.event.DefaultExecutionEventQueue.RegisteredExecutionListener
- All Implemented Interfaces:
- ExecutionListener
- Enclosing class:
- DefaultExecutionEventQueue
public static class DefaultExecutionEventQueue.RegisteredExecutionListener
- extends Object
- implements ExecutionListener
DefaultExecutionEventQueue.RegisteredExecutionListener
public DefaultExecutionEventQueue.RegisteredExecutionListener(ExecutionListener listener,
int eventTypeMask)
addEventTypesMask
public void addEventTypesMask(int mask)
removeEventType
public void removeEventType(ExecutionEventType eventType)
isRegisteredForEventType
public boolean isRegisteredForEventType(ExecutionEventType eventType)
isUnregisteredForAllEventTypes
public boolean isUnregisteredForAllEventTypes()
getListener
public ExecutionListener getListener()
notify
public EventActions notify(ExecutionEvent event)
- Description copied from interface:
ExecutionListener
- 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.
- Specified by:
notify
in interface ExecutionListener
- Parameters:
event
- The event which has just occurred.
- Returns:
- EventActions The set of requested
EventActionType
s or null.