Class ContextLoaderListener

java.lang.Object
org.springframework.web.context.ContextLoader
org.springframework.web.context.ContextLoaderListener
org.alfresco.web.app.ContextLoaderListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class ContextLoaderListener extends org.springframework.web.context.ContextLoaderListener
A specialised ContextLoaderListener that can be disabled by a boolean java:comp/env/properties/startup.enable JNDI entry. If startup.enable is configured as false then the Spring Application Context is not created, allowing further configuration changes to be made after initial deployment.
Author:
dward
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.apache.commons.logging.Log
     

    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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contextInitialized(jakarta.servlet.ServletContextEvent event)
     

    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, loadParentContext, setContextInitializers

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      protected static final org.apache.commons.logging.Log log
  • Constructor Details

    • ContextLoaderListener

      public ContextLoaderListener()
  • Method Details

    • contextInitialized

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