Package org.glassfish.jersey.server.spi
Class AbstractContainerLifecycleListener
- java.lang.Object
-
- org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener
-
- All Implemented Interfaces:
ContainerLifecycleListener
- Direct Known Subclasses:
MBeanExposer
public abstract class AbstractContainerLifecycleListener extends java.lang.Object implements ContainerLifecycleListener
Convenience class to allow implementing only a subset ofcontainer liefecycle listener
callback method(s).
-
-
Constructor Summary
Constructors Constructor Description AbstractContainerLifecycleListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onReload(Container container)
Invoked when thecontainer
has been reloaded.void
onShutdown(Container container)
Invoke at thecontainer
shut-down.void
onStartup(Container container)
Invoked at thecontainer
start-up.
-
-
-
Method Detail
-
onStartup
public void onStartup(Container container)
Description copied from interface:ContainerLifecycleListener
Invoked at thecontainer
start-up. This method is invoked even when application is reloaded and new instance of application has started.- Specified by:
onStartup
in interfaceContainerLifecycleListener
- Parameters:
container
- container that has been started.
-
onReload
public void onReload(Container container)
Description copied from interface:ContainerLifecycleListener
Invoked when thecontainer
has been reloaded.- Specified by:
onReload
in interfaceContainerLifecycleListener
- Parameters:
container
- container that has been reloaded.
-
onShutdown
public void onShutdown(Container container)
Description copied from interface:ContainerLifecycleListener
Invoke at thecontainer
shut-down. This method is invoked even before the application is being stopped as a part of reload.- Specified by:
onShutdown
in interfaceContainerLifecycleListener
- Parameters:
container
- container that has been shut down.
-
-