org.roscopeco.janno.core
Class JannoLifecycleListener

java.lang.Object
  extended by org.roscopeco.janno.core.JannoLifecycleListener
All Implemented Interfaces:
EventListener, HttpSessionListener, ServletContextListener

public class JannoLifecycleListener
extends Object
implements ServletContextListener, HttpSessionListener

Provides top-level (null call) lifecycle management for the Janno platform. This class takes responsibility for starting and stopping the core, and initializing, building and starting per-session containers as required. It implements the two of the three lifecycle interfaces provided by the Servlets 2.4 API, leaving request processing to the RequestLifecycleFilter class. This listener is manadatory, and can be configured for a given context with an entry like:

In the appropriate context's web.xml.

Version:
$Revision: 1.3 $ $Date: 2005/07/28 01:29:12 $
Author:
Ross Bamford (rosco<at>roscopeco.co.uk)
See Also:
RequestLifecycleFilter

Constructor Summary
JannoLifecycleListener()
           
 
Method Summary
 void contextDestroyed(ServletContextEvent sce)
           
 void contextInitialized(ServletContextEvent sce)
           
 void sessionCreated(HttpSessionEvent hse)
           
 void sessionDestroyed(HttpSessionEvent hse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JannoLifecycleListener

public JannoLifecycleListener()
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent sce)
Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

public void contextDestroyed(ServletContextEvent sce)
Specified by:
contextDestroyed in interface ServletContextListener

sessionCreated

public void sessionCreated(HttpSessionEvent hse)
Specified by:
sessionCreated in interface HttpSessionListener

sessionDestroyed

public void sessionDestroyed(HttpSessionEvent hse)
Specified by:
sessionDestroyed in interface HttpSessionListener


Copyright © 2005 Roscopeco Open Technologies. All Rights Reserved.