Class ConfluenceBootstrappedContextLoaderListener

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

    public class ConfluenceBootstrappedContextLoaderListener
    extends com.atlassian.config.bootstrap.BootstrappedContextLoaderListener
    Adds (relatively) user friendly error handling if the main spring context cannot be initialized.
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canInitialiseContainer()  
      void contextInitialized​(javax.servlet.ServletContextEvent event)  
      protected com.atlassian.spring.container.SpringContainerContext getNewSpringContainerContext()  
      protected org.springframework.context.ApplicationContext loadParentContext​(javax.servlet.ServletContext servletContext)  
      • Methods inherited from class com.atlassian.spring.container.ContainerContextLoaderListener

        postInitialiseContext
      • Methods inherited from class org.springframework.web.context.ContextLoaderListener

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

        closeWebApplicationContext, configureAndRefreshWebApplicationContext, createWebApplicationContext, customizeContext, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContext, initWebApplicationContext, setContextInitializers
      • Methods inherited from interface javax.servlet.ServletContextListener

        contextDestroyed
    • Constructor Detail

      • ConfluenceBootstrappedContextLoaderListener

        public ConfluenceBootstrappedContextLoaderListener()
    • Method Detail

      • canInitialiseContainer

        public boolean canInitialiseContainer()
        Overrides:
        canInitialiseContainer in class com.atlassian.config.bootstrap.BootstrappedContextLoaderListener
      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
        Overrides:
        contextInitialized in class com.atlassian.spring.container.ContainerContextLoaderListener
      • loadParentContext

        protected org.springframework.context.ApplicationContext loadParentContext​(javax.servlet.ServletContext servletContext)
                                                                            throws org.springframework.beans.BeansException
        Overrides:
        loadParentContext in class com.atlassian.config.bootstrap.BootstrappedContextLoaderListener
        Throws:
        org.springframework.beans.BeansException
      • getNewSpringContainerContext

        protected com.atlassian.spring.container.SpringContainerContext getNewSpringContainerContext()
        Overrides:
        getNewSpringContainerContext in class com.atlassian.config.bootstrap.BootstrappedContextLoaderListener