com.googlecode.sarasvati.event
Class ExecutionListenerWrapper
java.lang.Object
com.googlecode.sarasvati.event.ExecutionListenerWrapper
- All Implemented Interfaces:
- ExecutionListener
public class ExecutionListenerWrapper
- extends Object
- implements ExecutionListener
Useful for avoiding hibernate proxy behavior. If a node implements
ExecutionListener, it can return new ExecutionListenerWrapper( this )
from Adaptable.getAdaptor(Class)
, and the proxy will not break.
- Author:
- Paul Lorenz
ExecutionListenerWrapper
public ExecutionListenerWrapper(ExecutionListener listener)
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.