public abstract class FrameworkListener extends Object implements LifecycleListener, ContainerListener
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<Context,LifecycleListener> |
contextListeners |
| Constructor and Description |
|---|
FrameworkListener() |
| Modifier and Type | Method and 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 ConcurrentHashMap<Context,LifecycleListener> contextListeners
protected abstract LifecycleListener createLifecycleListener(Context context)
context - the associated Contextpublic void lifecycleEvent(LifecycleEvent event)
LifecycleListenerlifecycleEvent in interface LifecycleListenerevent - LifecycleEvent that has occurredpublic void containerEvent(ContainerEvent event)
ContainerListenercontainerEvent in interface ContainerListenerevent - 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-2021 Apache Software Foundation. All Rights Reserved.