Package org.opennms.web.servlet
Class InitializerServletContextListener
- java.lang.Object
-
- org.opennms.web.servlet.InitializerServletContextListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.ServletContextListener
public class InitializerServletContextListener extends java.lang.Object implements javax.servlet.ServletContextListener
This listener is specified in the web.xml to listen toServletContext
lifecyle events. On startup it callsServletInitializer.init(javax.servlet.ServletContext)
to set up OpenNMS-specific properties and starts an RTC subscription timer. On shutdown it stops the RTC timer.- Author:
- Lawrence Karnowski
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InitializerServletContextListener.RTCPostSubscriberTimerTask
This task is used to callRTCPostSubscriber.subscribeAll(String)
if the categories have not been updated recently or ever (such as at startup).
-
Constructor Summary
Constructors Constructor Description InitializerServletContextListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent event)
Cancel the RTC subscription timer.void
contextInitialized(javax.servlet.ServletContextEvent event)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
Cancel the RTC subscription timer.- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
-