org.apache.webbeans.web.tomcat
Class ContextLifecycleListener

java.lang.Object
  extended by org.apache.webbeans.web.tomcat.ContextLifecycleListener
All Implemented Interfaces:
PropertyChangeListener, EventListener, javax.servlet.ServletContextAttributeListener, org.apache.catalina.ContainerListener, org.apache.catalina.LifecycleListener

public class ContextLifecycleListener
extends Object
implements PropertyChangeListener, org.apache.catalina.LifecycleListener, org.apache.catalina.ContainerListener, javax.servlet.ServletContextAttributeListener

Context lifecycle listener. Adapted from OpenEJB Tomcat and updated.

Version:
$Rev$ $Date$

Nested Class Summary
static class ContextLifecycleListener.MoniterableHashMap
           
protected static class ContextLifecycleListener.PrivilegedActionForAccessibleObject
           
protected static class ContextLifecycleListener.PrivilegedActionForClass
           
 
Constructor Summary
ContextLifecycleListener()
           
 
Method Summary
 void attributeAdded(javax.servlet.ServletContextAttributeEvent servletContextAttributeEvent)
           
 void attributeRemoved(javax.servlet.ServletContextAttributeEvent servletContextAttributeEvent)
           
 void attributeReplaced(javax.servlet.ServletContextAttributeEvent servletContextAttributeEvent)
           
 void containerEvent(org.apache.catalina.ContainerEvent event)
           
 void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
           
 void propertyChange(PropertyChangeEvent event)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextLifecycleListener

public ContextLifecycleListener()
Method Detail

lifecycleEvent

public void lifecycleEvent(org.apache.catalina.LifecycleEvent event)
Specified by:
lifecycleEvent in interface org.apache.catalina.LifecycleListener

containerEvent

public void containerEvent(org.apache.catalina.ContainerEvent event)
Specified by:
containerEvent in interface org.apache.catalina.ContainerListener

start

public void start()

stop

public void stop()

propertyChange

public void propertyChange(PropertyChangeEvent event)
Specified by:
propertyChange in interface PropertyChangeListener

attributeAdded

public void attributeAdded(javax.servlet.ServletContextAttributeEvent servletContextAttributeEvent)
Specified by:
attributeAdded in interface javax.servlet.ServletContextAttributeListener

attributeRemoved

public void attributeRemoved(javax.servlet.ServletContextAttributeEvent servletContextAttributeEvent)
Specified by:
attributeRemoved in interface javax.servlet.ServletContextAttributeListener

attributeReplaced

public void attributeReplaced(javax.servlet.ServletContextAttributeEvent servletContextAttributeEvent)
Specified by:
attributeReplaced in interface javax.servlet.ServletContextAttributeListener


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