org.beanlet.web
Class ServletContextListener

java.lang.Object
  extended by org.beanlet.web.ServletContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class ServletContextListener
extends Object
implements javax.servlet.ServletContextListener

Add the following configuration to the web application's web.xml file to support the Request and Session beanlet scopes.
Not required for Servlet 3.0 containers.

 <web-app>
   ...
   <listener>
     <listener-class>org.beanlet.web.ServletContextListener<listener-class>
   </listener>
   ...
 </web-app>
 

See Also:
Request, Session

Constructor Summary
ServletContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
           
 void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextListener

public ServletContextListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener


Copyright © 2006-2012. All Rights Reserved.