Package org.apache.catalina.core
Class FrameworkListener
- java.lang.Object
- 
- org.apache.catalina.core.FrameworkListener
 
- 
- All Implemented Interfaces:
- ContainerListener,- LifecycleListener
 - Direct Known Subclasses:
- ThreadLocalLeakPreventionListener
 
 public abstract class FrameworkListener extends java.lang.Object implements LifecycleListener, ContainerListener This listener must be declared in server.xml as a Server listener, possibly optional. It will register a lifecycle listener on all contexts. This is an alternative to adding a Listener in context.xml with more flexibility.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.concurrent.ConcurrentHashMap<Context,LifecycleListener>contextListeners
 - 
Constructor SummaryConstructors Constructor Description FrameworkListener()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcontainerEvent(ContainerEvent event)Acknowledge the occurrence of the specified event.protected abstract LifecycleListenercreateLifecycleListener(Context context)Create a lifecycle listener which will then be added to the specified context.voidlifecycleEvent(LifecycleEvent event)Acknowledge the occurrence of the specified event.protected voidprocessContainerAddChild(Container child)protected voidprocessContainerRemoveChild(Container child)protected voidregisterContextListener(Context context)protected voidregisterListenersForEngine(Engine engine)protected voidregisterListenersForHost(Host host)protected voidregisterListenersForServer(Server server)
 
- 
- 
- 
Field Detail- 
contextListenersprotected final java.util.concurrent.ConcurrentHashMap<Context,LifecycleListener> contextListeners 
 
- 
 - 
Method Detail- 
createLifecycleListenerprotected abstract LifecycleListener createLifecycleListener(Context context) Create a lifecycle listener which will then be added to the specified context.- Parameters:
- context- the associated Context
- Returns:
- the lifecycle listener
 
 - 
lifecycleEventpublic void lifecycleEvent(LifecycleEvent event) Description copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
- lifecycleEventin interface- LifecycleListener
- Parameters:
- event- LifecycleEvent that has occurred
 
 - 
containerEventpublic void containerEvent(ContainerEvent event) Description copied from interface:ContainerListenerAcknowledge the occurrence of the specified event.- Specified by:
- containerEventin interface- ContainerListener
- Parameters:
- event- ContainerEvent that has occurred
 
 - 
registerListenersForServerprotected void registerListenersForServer(Server server) 
 - 
registerListenersForEngineprotected void registerListenersForEngine(Engine engine) 
 - 
registerListenersForHostprotected void registerListenersForHost(Host host) 
 - 
registerContextListenerprotected void registerContextListener(Context context) 
 - 
processContainerAddChildprotected void processContainerAddChild(Container child) 
 - 
processContainerRemoveChildprotected void processContainerRemoveChild(Container child) 
 
- 
 
-