org.pentaho.platform.engine.core.system
Class SessionCleanupListener

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.SessionCleanupListener
All Implemented Interfaces:
IPentahoSystemEntryPoint, IPentahoSystemExitPoint, IPentahoSystemListener

public class SessionCleanupListener
extends Object
implements IPentahoSystemListener, IPentahoSystemExitPoint, IPentahoSystemEntryPoint

This class is responsible for making sure the thread local that hangs on to the current session gets cleared when a system exit point happens.


Constructor Summary
SessionCleanupListener()
           
 
Method Summary
 void shutdown()
          Notification of system shutdown.
 boolean startup(IPentahoSession session)
          Notification of system startup.
 void systemEntryPoint()
          Perform operations necessary upon entry to the system.
 void systemExitPoint()
          Perform any system cleanup actions after the thread executes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionCleanupListener

public SessionCleanupListener()
Method Detail

shutdown

public void shutdown()
Description copied from interface: IPentahoSystemListener
Notification of system shutdown. This event fires right before the server context is shutdown.

Specified by:
shutdown in interface IPentahoSystemListener

startup

public boolean startup(IPentahoSession session)
Description copied from interface: IPentahoSystemListener
Notification of system startup. This event fires at the end of system initialization, after all system components have started successfully.

Specified by:
startup in interface IPentahoSystemListener

systemExitPoint

public void systemExitPoint()
Description copied from interface: IPentahoSystemExitPoint
Perform any system cleanup actions after the thread executes.

Specified by:
systemExitPoint in interface IPentahoSystemExitPoint

systemEntryPoint

public void systemEntryPoint()
Description copied from interface: IPentahoSystemEntryPoint
Perform operations necessary upon entry to the system.

Specified by:
systemEntryPoint in interface IPentahoSystemEntryPoint