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 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
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcontainerEvent(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 voidprotected voidprotected voidregisterContextListener(Context context) protected voidregisterListenersForEngine(Engine engine) protected voidregisterListenersForHost(Host host) protected voidregisterListenersForServer(Server server) 
- 
Field Details- 
contextListeners
 
- 
- 
Constructor Details- 
FrameworkListenerpublic FrameworkListener()
 
- 
- 
Method Details- 
createLifecycleListenerCreate a lifecycle listener which will then be added to the specified context.- Parameters:
- context- the associated Context
- Returns:
- the lifecycle listener
 
- 
lifecycleEventDescription copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
- lifecycleEventin interface- LifecycleListener
- Parameters:
- event- LifecycleEvent that has occurred
 
- 
containerEventDescription copied from interface:ContainerListenerAcknowledge the occurrence of the specified event.- Specified by:
- containerEventin interface- ContainerListener
- Parameters:
- event- ContainerEvent that has occurred
 
- 
registerListenersForServer
- 
registerListenersForEngine
- 
registerListenersForHost
- 
registerContextListener
- 
processContainerAddChild
- 
processContainerRemoveChild
 
-