Package org.glassfish.jersey.server.spi
Class AbstractContainerLifecycleListener
- java.lang.Object
-
- org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener
-
- All Implemented Interfaces:
ContainerLifecycleListener
public abstract class AbstractContainerLifecycleListener extends Object implements ContainerLifecycleListener
Convenience class to allow implementing only a subset ofcontainer liefecycle listenercallback method(s).- Author:
- Jakub Podlesak
-
-
Constructor Summary
Constructors Constructor Description AbstractContainerLifecycleListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonReload(Container container)Invoked when thecontainerhas been reloaded.voidonShutdown(Container container)Invoke at thecontainershut-down.voidonStartup(Container container)Invoked at thecontainerstart-up.
-
-
-
Method Detail
-
onStartup
public void onStartup(Container container)
Description copied from interface:ContainerLifecycleListenerInvoked at thecontainerstart-up. This method is invoked even when application is reloaded and new instance of application has started.- Specified by:
onStartupin interfaceContainerLifecycleListener- Parameters:
container- container that has been started.
-
onReload
public void onReload(Container container)
Description copied from interface:ContainerLifecycleListenerInvoked when thecontainerhas been reloaded.- Specified by:
onReloadin interfaceContainerLifecycleListener- Parameters:
container- container that has been reloaded.
-
onShutdown
public void onShutdown(Container container)
Description copied from interface:ContainerLifecycleListenerInvoke at thecontainershut-down. This method is invoked even before the application is being stopped as a part of reload.- Specified by:
onShutdownin interfaceContainerLifecycleListener- Parameters:
container- container that has been shut down.
-
-