org.roscopeco.janno.core
Class JannoLifecycleListener
java.lang.Object
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:
<listener>
<listener-class>org.roscopeco.janno.core.JannoLifecycleListener</listener-class>
</listener>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JannoLifecycleListener
public JannoLifecycleListener()
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.