org.glassfish.jersey.server.internal.monitoring
Class MonitoringContainerListener
java.lang.Object
org.glassfish.jersey.server.spi.AbstractContainerLifecycleListener
org.glassfish.jersey.server.internal.monitoring.MonitoringContainerListener
- All Implemented Interfaces:
- ContainerLifecycleListener
public class MonitoringContainerListener
- extends AbstractContainerLifecycleListener
Container listener that listens to container events and trigger the application events
and call them on supplied RequestEventListener.
This listener must be registered as a standard provider in Jersey runtime.
- Author:
- Miroslav Fuksa (miroslav.fuksa at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonitoringContainerListener
public MonitoringContainerListener()
init
public void init(ApplicationEventListener listener,
ApplicationEvent initFinishedEvent)
- Initializes the instance with listener that must be called and initialization event. If this method
is not called then events cannot not be triggered which might be needed when no
ApplicationEventListener is registered in Jersey runtime.
- Parameters:
listener - Listener that should be called.initFinishedEvent - Event of type ApplicationEvent.Type#INITIALIZATION_START.
onReload
public void onReload(Container container)
- Description copied from interface:
ContainerLifecycleListener
- Invoked when the
container has been reloaded.
- Specified by:
onReload in interface ContainerLifecycleListener- Overrides:
onReload in class AbstractContainerLifecycleListener
- Parameters:
container - container that has been reloaded.
onShutdown
public void onShutdown(Container container)
- Description copied from interface:
ContainerLifecycleListener
- Invoke at the
container shut-down.
- Specified by:
onShutdown in interface ContainerLifecycleListener- Overrides:
onShutdown in class AbstractContainerLifecycleListener
- Parameters:
container - container that has been shut down.
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.