ContainerListener
, LifecycleListener
ThreadLocalLeakPreventionListener
public abstract class FrameworkListener extends java.lang.Object implements LifecycleListener, ContainerListener
Modifier and Type | Field | Description |
---|---|---|
protected java.util.concurrent.ConcurrentHashMap<Context,LifecycleListener> |
contextListeners |
Constructor | Description |
---|---|
FrameworkListener() |
Modifier and Type | Method | Description |
---|---|---|
void |
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 |
processContainerAddChild(Container child) |
|
protected void |
processContainerRemoveChild(Container child) |
|
protected void |
registerContextListener(Context context) |
|
protected void |
registerListenersForEngine(Engine engine) |
|
protected void |
registerListenersForHost(Host host) |
|
protected void |
registerListenersForServer(Server server) |
protected final java.util.concurrent.ConcurrentHashMap<Context,LifecycleListener> contextListeners
protected abstract LifecycleListener createLifecycleListener(Context context)
context
- the associated Contextpublic void lifecycleEvent(LifecycleEvent event)
LifecycleListener
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurredpublic void containerEvent(ContainerEvent event)
ContainerListener
containerEvent
in interface ContainerListener
event
- ContainerEvent that has occurredprotected void registerListenersForServer(Server server)
protected void registerListenersForEngine(Engine engine)
protected void registerListenersForHost(Host host)
protected void registerContextListener(Context context)
protected void processContainerAddChild(Container child)
protected void processContainerRemoveChild(Container child)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.