public final class MonitoringContainerListener extends Object implements ContainerLifecycleListener
application events
and call them on supplied RequestEventListener.
This listener must be registered as a standard provider in Jersey runtime.| Modifier and Type | Class and Description |
|---|---|
static class |
MonitoringContainerListener.Binder
A binder that binds the
MonitoringContainerListener. |
| Constructor and Description |
|---|
MonitoringContainerListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(ApplicationEventListener listener,
ApplicationEvent initFinishedEvent)
Initializes the instance with listener that must be called and initialization event.
|
void |
onReload(Container container)
Invoked when the
container has been reloaded. |
void |
onShutdown(Container container)
Invoke at the
container shut-down. |
void |
onStartup(Container container)
Invoked at the
container start-up. |
public void init(ApplicationEventListener listener, ApplicationEvent initFinishedEvent)
ApplicationEventListener is registered in Jersey runtime.listener - Listener that should be called.initFinishedEvent - Event of type ApplicationEvent.Type#INITIALIZATION_START.public void onStartup(Container container)
ContainerLifecycleListenercontainer start-up. This method is invoked even
when application is reloaded and new instance of application has started.onStartup in interface ContainerLifecycleListenercontainer - container that has been started.public void onReload(Container container)
ContainerLifecycleListenercontainer has been reloaded.onReload in interface ContainerLifecycleListenercontainer - container that has been reloaded.public void onShutdown(Container container)
ContainerLifecycleListenercontainer shut-down. This method is invoked even before
the application is being stopped as a part of reload.onShutdown in interface ContainerLifecycleListenercontainer - container that has been shut down.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.