Spring源码学习--ConfigurableWebApplicationContext(九)

    xiaoxiao2021-03-25  97

    ApplicationContext体系:

    ConfigurableWebApplicationContext是web应用上下文使用的接口,并没有定义太多的操作,主要和Servlet上下文及配置文件等,没有多少接口定义。

    public interface ConfigurableWebApplicationContext extends WebApplicationContext, ConfigurableApplicationContext { String APPLICATION_CONTEXT_ID_PREFIX = WebApplicationContext.class.getName() + ":"; String SERVLET_CONFIG_BEAN_NAME = "servletConfig"; void setServletContext(ServletContext servletContext); void setServletConfig(ServletConfig servletConfig); ServletConfig getServletConfig(); void setNamespace(String namespace); String getNamespace(); void setConfigLocation(String configLocation); void setConfigLocations(String... configLocations); String[] getConfigLocations(); }

    转载请注明原文地址: https://ju.6miu.com/read-10776.html

    最新回复(0)