Spring源码学习--ConfigurableWebApplicationContext(九)

来源:互联网 发布:linux tar命令出错 编辑:程序博客网 时间:2024/06/06 20:14

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();}




0 0
原创粉丝点击