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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
FrameworkListener
public FrameworkListener()
-
-
Method Details
-
createLifecycleListener
Create a lifecycle listener which will then be added to the specified context.- Parameters:
context- the associated Context- Returns:
- the lifecycle listener
-
lifecycleEvent
Description copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
lifecycleEventin interfaceLifecycleListener- Parameters:
event- LifecycleEvent that has occurred
-
containerEvent
Description copied from interface:ContainerListenerAcknowledge the occurrence of the specified event.- Specified by:
containerEventin interfaceContainerListener- Parameters:
event- ContainerEvent that has occurred
-
registerListenersForServer
-
registerListenersForEngine
-
registerListenersForHost
-
registerContextListener
-
processContainerAddChild
-
processContainerRemoveChild
-