Class StartupListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    public class StartupListener
    extends org.springframework.web.context.ContextLoaderListener
    Slight variant of ContextLoaderListener that logs the time taken to initialize the context.
    Author:
    keshav, pavlidis, Matt Raible (original version), poirigui
    • Field Summary

      • Fields inherited from class org.springframework.web.context.ContextLoader

        CONFIG_LOCATION_PARAM, CONTEXT_CLASS_PARAM, CONTEXT_ID_PARAM, CONTEXT_INITIALIZER_CLASSES_PARAM, GLOBAL_INITIALIZER_CLASSES_PARAM, LOCATOR_FACTORY_KEY_PARAM, LOCATOR_FACTORY_SELECTOR_PARAM
    • Constructor Summary

      Constructors 
      Constructor Description
      StartupListener()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void contextInitialized​(javax.servlet.ServletContextEvent event)  
      • Methods inherited from class org.springframework.web.context.ContextLoaderListener

        contextDestroyed, createContextLoader, getContextLoader
      • Methods inherited from class org.springframework.web.context.ContextLoader

        closeWebApplicationContext, configureAndRefreshWebApplicationContext, createWebApplicationContext, createWebApplicationContext, customizeContext, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContext, initWebApplicationContext, loadParentContext
    • Constructor Detail

      • StartupListener

        public StartupListener()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        Overrides:
        contextInitialized in class org.springframework.web.context.ContextLoaderListener