org.apache.cocoon.tools.rcl.wrapper.servlet
Class ReloadingListener

java.lang.Object
  extended byorg.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener
All Implemented Interfaces:
EventListener, HttpSessionActivationListener, HttpSessionAttributeListener, HttpSessionBindingListener, HttpSessionListener, ServletContextAttributeListener, ServletContextListener, ServletRequestListener

public class ReloadingListener
extends Object
implements HttpSessionListener, ServletContextListener, HttpSessionActivationListener, HttpSessionAttributeListener, HttpSessionBindingListener, ServletContextAttributeListener, ServletRequestListener

This listener can be used as a wrapper around "real" listeners to support the reloading class loader.

Version:
$Id: ReloadingListener.java 588009 2007-10-24 20:39:12Z vgritsenko $

Field Summary
protected  ServletContext context
           
protected  List httpSessionActivationListeners
           
protected  List httpSessionAttributeListeners
           
protected  List httpSessionBindingListeners
           
protected  List httpSessionListeners
           
protected  List servletContextAttributeListeners
           
protected  List servletContextListeners
           
protected  List servletRequestListeners
           
 
Constructor Summary
ReloadingListener()
           
 
Method Summary
 void attributeAdded(HttpSessionBindingEvent event)
           
 void attributeAdded(ServletContextAttributeEvent event)
           
 void attributeRemoved(HttpSessionBindingEvent event)
           
 void attributeRemoved(ServletContextAttributeEvent event)
           
 void attributeReplaced(HttpSessionBindingEvent event)
           
 void attributeReplaced(ServletContextAttributeEvent event)
           
 void contextDestroyed(ServletContextEvent contextEvent)
           
 void contextInitialized(ServletContextEvent contextEvent)
           
protected  void init(ServletContext context)
           
protected  void invoke(List listeners, String identifier, Object event)
           
 void requestDestroyed(ServletRequestEvent event)
           
 void requestInitialized(ServletRequestEvent event)
           
 void sessionCreated(HttpSessionEvent event)
           
 void sessionDestroyed(HttpSessionEvent event)
           
 void sessionDidActivate(HttpSessionEvent event)
           
 void sessionWillPassivate(HttpSessionEvent event)
           
 void valueBound(HttpSessionBindingEvent event)
           
 void valueUnbound(HttpSessionBindingEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpSessionListeners

protected List httpSessionListeners

servletContextListeners

protected List servletContextListeners

httpSessionActivationListeners

protected List httpSessionActivationListeners

httpSessionBindingListeners

protected List httpSessionBindingListeners

servletContextAttributeListeners

protected List servletContextAttributeListeners

httpSessionAttributeListeners

protected List httpSessionAttributeListeners

servletRequestListeners

protected List servletRequestListeners

context

protected ServletContext context
Constructor Detail

ReloadingListener

public ReloadingListener()
Method Detail

init

protected void init(ServletContext context)

invoke

protected void invoke(List listeners,
                      String identifier,
                      Object event)

contextDestroyed

public void contextDestroyed(ServletContextEvent contextEvent)
Specified by:
contextDestroyed in interface ServletContextListener
See Also:
ServletContextListener.contextDestroyed(javax.servlet.ServletContextEvent)

contextInitialized

public void contextInitialized(ServletContextEvent contextEvent)
Specified by:
contextInitialized in interface ServletContextListener
See Also:
ServletContextListener.contextInitialized(javax.servlet.ServletContextEvent)

sessionCreated

public void sessionCreated(HttpSessionEvent event)
Specified by:
sessionCreated in interface HttpSessionListener
See Also:
HttpSessionListener.sessionCreated(javax.servlet.http.HttpSessionEvent)

sessionDestroyed

public void sessionDestroyed(HttpSessionEvent event)
Specified by:
sessionDestroyed in interface HttpSessionListener
See Also:
HttpSessionListener.sessionDestroyed(javax.servlet.http.HttpSessionEvent)

valueBound

public void valueBound(HttpSessionBindingEvent event)
Specified by:
valueBound in interface HttpSessionBindingListener
See Also:
HttpSessionBindingListener.valueBound(javax.servlet.http.HttpSessionBindingEvent)

valueUnbound

public void valueUnbound(HttpSessionBindingEvent event)
Specified by:
valueUnbound in interface HttpSessionBindingListener
See Also:
HttpSessionBindingListener.valueUnbound(javax.servlet.http.HttpSessionBindingEvent)

attributeAdded

public void attributeAdded(HttpSessionBindingEvent event)
Specified by:
attributeAdded in interface HttpSessionAttributeListener
See Also:
HttpSessionAttributeListener.attributeAdded(javax.servlet.http.HttpSessionBindingEvent)

attributeRemoved

public void attributeRemoved(HttpSessionBindingEvent event)
Specified by:
attributeRemoved in interface HttpSessionAttributeListener
See Also:
HttpSessionAttributeListener.attributeRemoved(javax.servlet.http.HttpSessionBindingEvent)

attributeReplaced

public void attributeReplaced(HttpSessionBindingEvent event)
Specified by:
attributeReplaced in interface HttpSessionAttributeListener
See Also:
HttpSessionAttributeListener.attributeReplaced(javax.servlet.http.HttpSessionBindingEvent)

sessionDidActivate

public void sessionDidActivate(HttpSessionEvent event)
Specified by:
sessionDidActivate in interface HttpSessionActivationListener
See Also:
HttpSessionActivationListener.sessionDidActivate(javax.servlet.http.HttpSessionEvent)

sessionWillPassivate

public void sessionWillPassivate(HttpSessionEvent event)
Specified by:
sessionWillPassivate in interface HttpSessionActivationListener
See Also:
HttpSessionActivationListener.sessionWillPassivate(javax.servlet.http.HttpSessionEvent)

attributeAdded

public void attributeAdded(ServletContextAttributeEvent event)
Specified by:
attributeAdded in interface ServletContextAttributeListener
See Also:
ServletContextAttributeListener.attributeAdded(javax.servlet.ServletContextAttributeEvent)

attributeRemoved

public void attributeRemoved(ServletContextAttributeEvent event)
Specified by:
attributeRemoved in interface ServletContextAttributeListener
See Also:
ServletContextAttributeListener.attributeRemoved(javax.servlet.ServletContextAttributeEvent)

attributeReplaced

public void attributeReplaced(ServletContextAttributeEvent event)
Specified by:
attributeReplaced in interface ServletContextAttributeListener
See Also:
ServletContextAttributeListener.attributeReplaced(javax.servlet.ServletContextAttributeEvent)

requestDestroyed

public void requestDestroyed(ServletRequestEvent event)
Specified by:
requestDestroyed in interface ServletRequestListener
See Also:
ServletRequestListener.requestDestroyed(javax.servlet.ServletRequestEvent)

requestInitialized

public void requestInitialized(ServletRequestEvent event)
Specified by:
requestInitialized in interface ServletRequestListener
See Also:
ServletRequestListener.requestInitialized(javax.servlet.ServletRequestEvent)


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.