Package org.glassfish.jersey.server.spi
Interface ContainerLifecycleListener
-
- All Known Implementing Classes:
AbstractContainerLifecycleListener
,ApplicationHandler
@Contract @ConstrainedTo(SERVER) public interface ContainerLifecycleListener
Classes implementing this contract receive container life-cycle notification events.- Author:
- Marek Potociar
-
-
Method Summary
All Methods Instance Methods Abstract 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
void onStartup(Container container)
Invoked at thecontainer
start-up. This method is invoked even when application is reloaded and new instance of application has started.- Parameters:
container
- container that has been started.
-
onReload
void onReload(Container container)
Invoked when thecontainer
has been reloaded.- Parameters:
container
- container that has been reloaded.
-
-