com.glaivestone.javax.execution
Class SessionEventAdaptor

java.lang.Object
  |
  +--com.glaivestone.javax.execution.SessionEventAdaptor
All Implemented Interfaces:
java.util.EventListener, SessionEventListener

public class SessionEventAdaptor
extends java.lang.Object
implements SessionEventListener

Default event listener adapter for receiving session life cycle events. The default behavior is to do nothing.

This is a convenience class to simplify creating listeners for specific subsets of events in the session life cycle.

Author:
Deb Lewis

Constructor Summary
SessionEventAdaptor()
           
 
Method Summary
 void aboutToShutdownSession(SessionEvent event)
          Notification event that session shutdown processing is being initiated.
 void aboutToStartSession(SessionEvent event)
          Notification event that the session is about to be started.
 void confirmSessionShutdown(SessionEvent event)
          Vetoable confirmation event notification that session shutdown processing is about to be initiated.
 void sessionStarted(SessionEvent event)
          Notification event that the session has been started.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionEventAdaptor

public SessionEventAdaptor()
Method Detail

aboutToStartSession

public void aboutToStartSession(SessionEvent event)
Notification event that the session is about to be started.

Specified by:
aboutToStartSession in interface SessionEventListener
See Also:
SessionEventListener.aboutToStartSession(com.glaivestone.javax.execution.SessionEvent)

sessionStarted

public void sessionStarted(SessionEvent event)
Notification event that the session has been started.

Specified by:
sessionStarted in interface SessionEventListener
See Also:
SessionEventListener.sessionStarted(com.glaivestone.javax.execution.SessionEvent)

confirmSessionShutdown

public void confirmSessionShutdown(SessionEvent event)
                            throws VetoException
Vetoable confirmation event notification that session shutdown processing is about to be initiated.

Specified by:
confirmSessionShutdown in interface SessionEventListener
Throws:
VetoException - thrown if a listener vetos the proposed session shutdown
See Also:
SessionEventListener.confirmSessionShutdown(com.glaivestone.javax.execution.SessionEvent)

aboutToShutdownSession

public void aboutToShutdownSession(SessionEvent event)
Notification event that session shutdown processing is being initiated.

Specified by:
aboutToShutdownSession in interface SessionEventListener
See Also:
SessionEventListener.aboutToShutdownSession(com.glaivestone.javax.execution.SessionEvent)

GFL 1.1 API