类 ContextLoader


  • public class ContextLoader
    extends Object
    Spring context loader
    从以下版本开始:
    3.0
    作者:
    chaostone
    • 字段详细资料

      • ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE

        public static final String ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE
        另请参阅:
        常量字段值
      • APPLICATION_CONTEXT_ID_PREFIX

        public static final String APPLICATION_CONTEXT_ID_PREFIX
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ContextLoader

        public ContextLoader()
    • 方法详细资料

      • createApplicationContext

        protected org.springframework.context.ConfigurableApplicationContext createApplicationContext​(jakarta.servlet.ServletContext sc)
      • initApplicationContext

        public org.springframework.context.ApplicationContext initApplicationContext​(jakarta.servlet.ServletContext servletContext)
      • configureAndRefreshApplicationContext

        protected void configureAndRefreshApplicationContext​(org.springframework.context.ConfigurableApplicationContext wac,
                                                             jakarta.servlet.ServletContext sc)
      • customizeContext

        protected void customizeContext​(jakarta.servlet.ServletContext servletContext,
                                        org.springframework.context.ConfigurableApplicationContext applicationContext)
      • determineContextClass

        protected Class<?> determineContextClass​(jakarta.servlet.ServletContext servletContext)
      • closeApplicationContext

        public void closeApplicationContext​(jakarta.servlet.ServletContext servletContext)
      • getContext

        public static org.springframework.context.ConfigurableApplicationContext getContext​(jakarta.servlet.ServletContext servletContext)