Class FrameworkListener

All Implemented Interfaces:
ContainerListener, LifecycleListener
Direct Known Subclasses:

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 Details

  • Constructor Details

    • FrameworkListener

      public FrameworkListener()
  • Method Details

    • createLifecycleListener

      protected abstract LifecycleListener createLifecycleListener(Context context)
      Create a lifecycle listener which will then be added to the specified context.
      context - the associated Context
      the lifecycle listener
    • lifecycleEvent

      public void lifecycleEvent(LifecycleEvent event)
      Description copied from interface: LifecycleListener
      Acknowledge the occurrence of the specified event.
      Specified by:
      lifecycleEvent in interface LifecycleListener
      event - LifecycleEvent that has occurred
    • containerEvent

      public void containerEvent(ContainerEvent event)
      Description copied from interface: ContainerListener
      Acknowledge the occurrence of the specified event.
      Specified by:
      containerEvent in interface ContainerListener
      event - ContainerEvent that has occurred
    • registerListenersForServer

      protected void registerListenersForServer(Server server)
    • registerListenersForEngine

      protected void registerListenersForEngine(Engine engine)
    • registerListenersForHost

      protected void registerListenersForHost(Host host)
    • registerContextListener

      protected void registerContextListener(Context context)
    • processContainerAddChild

      protected void processContainerAddChild(Container child)
    • processContainerRemoveChild

      protected void processContainerRemoveChild(Container child)