|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.monitoring.MonitoringContainerListener
public class MonitoringContainerListener
Container listener that listens to container events and trigger the application events
and call them on supplied RequestEventListener.
| Nested Class Summary | |
|---|---|
static class |
MonitoringContainerListener.Binder
A binder that binds the MonitoringContainerListener. |
| Constructor Summary | |
|---|---|
MonitoringContainerListener()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MonitoringContainerListener()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||