org.jboss.webbeans.servlet
Class WebBeansListener

java.lang.Object
  extended by org.jboss.webbeans.servlet.api.helpers.AbstractServletListener
      extended by org.jboss.webbeans.servlet.WebBeansListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener, javax.servlet.ServletRequestListener, ServletListener

public class WebBeansListener
extends AbstractServletListener

The Web Beans listener Listens for context/session creation/destruction. Delegates work to the ServletLifeCycle.

Author:
Nicklas Karlsson

Constructor Summary
WebBeansListener()
           
 
Method Summary
 void requestDestroyed(javax.servlet.ServletRequestEvent event)
          Called when the request is destroyed
 void requestInitialized(javax.servlet.ServletRequestEvent event)
          Called when the request is initialized
 void sessionCreated(javax.servlet.http.HttpSessionEvent event)
          Called when the session is created
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
          Called when the session is destroyed
 
Methods inherited from class org.jboss.webbeans.servlet.api.helpers.AbstractServletListener
contextDestroyed, contextInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBeansListener

public WebBeansListener()
Method Detail

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
Called when the session is created

Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener
Overrides:
sessionCreated in class AbstractServletListener
Parameters:
event - The session event

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
Called when the session is destroyed

Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener
Overrides:
sessionDestroyed in class AbstractServletListener
Parameters:
event - The session event

requestDestroyed

public void requestDestroyed(javax.servlet.ServletRequestEvent event)
Called when the request is destroyed

Specified by:
requestDestroyed in interface javax.servlet.ServletRequestListener
Overrides:
requestDestroyed in class AbstractServletListener
Parameters:
event - The request event

requestInitialized

public void requestInitialized(javax.servlet.ServletRequestEvent event)
Called when the request is initialized

Specified by:
requestInitialized in interface javax.servlet.ServletRequestListener
Overrides:
requestInitialized in class AbstractServletListener
Parameters:
event - The request event


Copyright © 2011. All Rights Reserved.