Package org.opennms.web.servlet
Class InitializerServletContextListener
- java.lang.Object
-
- org.opennms.web.servlet.InitializerServletContextListener
-
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class InitializerServletContextListener extends Object implements javax.servlet.ServletContextListener
This listener is specified in the web.xml to listen toServletContextlifecyle 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 classInitializerServletContextListener.RTCPostSubscriberTimerTaskThis 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 voidcontextDestroyed(javax.servlet.ServletContextEvent event)Cancel the RTC subscription timer.voidcontextInitialized(javax.servlet.ServletContextEvent event)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event)
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event)
Cancel the RTC subscription timer.- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
-