接口 ConfigurableWebApplicationContext

所有超级接口:
cn.taketoday.context.ApplicationContext, cn.taketoday.context.ApplicationEventPublisher, AutoCloseable, cn.taketoday.beans.factory.BeanFactory, Closeable, cn.taketoday.context.ConfigurableApplicationContext, cn.taketoday.beans.factory.support.DependencyInjectorProvider, cn.taketoday.core.env.EnvironmentCapable, cn.taketoday.beans.factory.HierarchicalBeanFactory, cn.taketoday.context.Lifecycle, cn.taketoday.context.MessageSource, cn.taketoday.core.io.PatternResourceLoader, cn.taketoday.core.io.ResourceLoader, WebApplicationContext
所有已知实现类:
AbstractRefreshableWebApplicationContext, AnnotationConfigWebApplicationContext, GenericWebApplicationContext, StaticWebApplicationContext, XmlWebApplicationContext

public interface ConfigurableWebApplicationContext extends WebApplicationContext, cn.taketoday.context.ConfigurableApplicationContext
Interface to be implemented by configurable web application contexts.

Note: The setters of this interface need to be called before an invocation of the ConfigurableApplicationContext.refresh() method inherited from ConfigurableApplicationContext. They do not cause an initialization of the context on their own.

从以下版本开始:
4.0 2022/2/20 17:52
作者:
Harry Yang
  • 嵌套类概要

    从接口继承的嵌套类/接口 cn.taketoday.context.ApplicationContext

    cn.taketoday.context.ApplicationContext.State
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
    Name of the ServletConfig environment bean in the factory.

    从接口继承的字段 cn.taketoday.context.ApplicationContext

    APPLICATION_NAME

    从接口继承的字段 cn.taketoday.beans.factory.BeanFactory

    FACTORY_BEAN_PREFIX

    从接口继承的字段 cn.taketoday.context.ConfigurableApplicationContext

    CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SHUTDOWN_HOOK_THREAD_NAME

    从接口继承的字段 cn.taketoday.core.io.PatternResourceLoader

    CLASSPATH_ALL_URL_PREFIX

    从接口继承的字段 cn.taketoday.core.io.ResourceLoader

    CLASSPATH_URL_PREFIX
  • 方法概要

    修饰符和类型
    方法
    说明
    Return the config locations for this web application context, or null if none specified.
    Return the namespace for this web application context, if any.
    Return the ServletConfig for this web application context, if any.
    void
    setConfigLocation(String configLocation)
    Set the config locations for this web application context in init-param style, i.e. with distinct locations separated by commas, semicolons or whitespace.
    void
    setConfigLocations(String... configLocations)
    Set the config locations for this web application context.
    void
    setNamespace(String namespace)
    Set the namespace for this web application context, to be used for building a default context config location.
    void
    Set the ServletConfig for this web application context.
    void
    Set the ServletContext for this web application context.

    从接口继承的方法 cn.taketoday.context.ApplicationContext

    getApplicationName, getAutowireCapableBeanFactory, getDisplayName, getExpressionEvaluator, getId, getParent, getStartupDate, getState, hasStarted, unwrapFactory

    从接口继承的方法 cn.taketoday.context.ApplicationEventPublisher

    publishEvent, publishEvent

    从接口继承的方法 cn.taketoday.beans.factory.BeanFactory

    containsBean, containsBeanDefinition, findAllAnnotationsOnBean, findAnnotationOnBean, findAnnotationOnBean, findSynthesizedAnnotation, getAliases, getAnnotatedBeans, getBean, getBean, getBean, getBean, getBean, getBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeanProvider, getBeanProvider, getBeans, getBeansOfType, getBeansOfType, getBeansOfType, getBeansWithAnnotation, getBeansWithAnnotation, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatch, unwrap

    从接口继承的方法 cn.taketoday.context.ConfigurableApplicationContext

    addApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getBeanFactory, getBootstrapContext, getEnvironment, isActive, refresh, registerShutdownHook, removeApplicationListener, setClassLoader, setEnvironment, setId, setParent

    从接口继承的方法 cn.taketoday.beans.factory.support.DependencyInjectorProvider

    getInjector

    从接口继承的方法 cn.taketoday.beans.factory.HierarchicalBeanFactory

    containsLocalBean, getParentBeanFactory

    从接口继承的方法 cn.taketoday.context.Lifecycle

    isRunning, start, stop

    从接口继承的方法 cn.taketoday.context.MessageSource

    getMessage, getMessage, getMessage

    从接口继承的方法 cn.taketoday.core.io.PatternResourceLoader

    getResources, getResourcesArray, scan

    从接口继承的方法 cn.taketoday.core.io.ResourceLoader

    getClassLoader, getResource

    从接口继承的方法 cn.taketoday.web.servlet.WebApplicationContext

    getServletContext
  • 字段详细资料

    • SERVLET_CONFIG_BEAN_NAME

      static final String SERVLET_CONFIG_BEAN_NAME
      Name of the ServletConfig environment bean in the factory.
      另请参阅:
  • 方法详细资料

    • setNamespace

      void setNamespace(@Nullable String namespace)
      Set the namespace for this web application context, to be used for building a default context config location. The root web application context does not have a namespace.
    • getNamespace

      @Nullable String getNamespace()
      Return the namespace for this web application context, if any.
    • setConfigLocation

      void setConfigLocation(String configLocation)
      Set the config locations for this web application context in init-param style, i.e. with distinct locations separated by commas, semicolons or whitespace.

      If not set, the implementation is supposed to use a default for the given namespace or the root web application context, as appropriate.

    • setConfigLocations

      void setConfigLocations(String... configLocations)
      Set the config locations for this web application context.

      If not set, the implementation is supposed to use a default for the given namespace or the root web application context, as appropriate.

    • getConfigLocations

      @Nullable String[] getConfigLocations()
      Return the config locations for this web application context, or null if none specified.
    • setServletContext

      void setServletContext(@Nullable ServletContext servletContext)
      Set the ServletContext for this web application context.

      Does not cause an initialization of the context: refresh needs to be called after the setting of all configuration properties.

      另请参阅:
      • ConfigurableApplicationContext.refresh()
    • setServletConfig

      void setServletConfig(@Nullable ServletConfig servletConfig)
      Set the ServletConfig for this web application context. Only called for a WebApplicationContext that belongs to a specific Servlet.
      另请参阅:
      • ConfigurableApplicationContext.refresh()
    • getServletConfig

      @Nullable ServletConfig getServletConfig()
      Return the ServletConfig for this web application context, if any.