com.googlecode.sarasvati.event
Class DefaultExecutionEventQueue.RegisteredExecutionListener

java.lang.Object
  extended by com.googlecode.sarasvati.event.DefaultExecutionEventQueue.RegisteredExecutionListener
All Implemented Interfaces:
ExecutionListener
Enclosing class:
DefaultExecutionEventQueue

public static class DefaultExecutionEventQueue.RegisteredExecutionListener
extends Object
implements ExecutionListener


Constructor Summary
DefaultExecutionEventQueue.RegisteredExecutionListener(ExecutionListener listener, int eventTypeMask)
           
 
Method Summary
 void addEventTypesMask(int mask)
           
 ExecutionListener getListener()
           
 boolean isRegisteredForEventType(ExecutionEventType eventType)
           
 boolean isUnregisteredForAllEventTypes()
           
 EventActions notify(ExecutionEvent event)
          Invoked by the Engine when an event of a type that this listener has register for occurs.
 void removeEventType(ExecutionEventType eventType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExecutionEventQueue.RegisteredExecutionListener

public DefaultExecutionEventQueue.RegisteredExecutionListener(ExecutionListener listener,
                                                              int eventTypeMask)
Method Detail

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 EventActionTypes or null.