Kieker 1.12

kieker.monitoring.core.servlet
Class TerminationServletContextListener

java.lang.Object
  extended by kieker.monitoring.core.servlet.TerminationServletContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public class TerminationServletContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener

Use this listener in webapps where ShutdownHook is not called.

Since:
1.3
Author:
Dennis Kieselhorst

Constructor Summary
TerminationServletContextListener()
          Creates a new instance of this class using the singleton instance of the MonitoringController as a controller.
TerminationServletContextListener(IStateController ctrl)
          Create a new instance utilizing an external state controller.
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent evt)
          
 void contextInitialized(javax.servlet.ServletContextEvent evt)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerminationServletContextListener

public TerminationServletContextListener()
Creates a new instance of this class using the singleton instance of the MonitoringController as a controller.


TerminationServletContextListener

public TerminationServletContextListener(IStateController ctrl)
Create a new instance utilizing an external state controller.

Parameters:
ctrl - state controller
Method Detail

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent evt)

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent evt)

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net