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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
containerEvent
(ContainerEvent event) Acknowledge the occurrence of the specified event.protected abstract LifecycleListener
createLifecycleListener
(Context context) Create a lifecycle listener which will then be added to the specified context.void
lifecycleEvent
(LifecycleEvent event) Acknowledge the occurrence of the specified event.protected void
protected void
protected void
registerContextListener
(Context context) protected void
registerListenersForEngine
(Engine engine) protected void
registerListenersForHost
(Host host) protected void
registerListenersForServer
(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:LifecycleListener
Acknowledge the occurrence of the specified event.- Specified by:
lifecycleEvent
in interfaceLifecycleListener
- Parameters:
event
- LifecycleEvent that has occurred
-
containerEvent
Description copied from interface:ContainerListener
Acknowledge the occurrence of the specified event.- Specified by:
containerEvent
in interfaceContainerListener
- Parameters:
event
- ContainerEvent that has occurred
-
registerListenersForServer
-
registerListenersForEngine
-
registerListenersForHost
-
registerContextListener
-
processContainerAddChild
-
processContainerRemoveChild
-