Package org.springframework.web.context
Interface ConfigurableWebApplicationContext
- All Superinterfaces:
- ApplicationContext,- ApplicationEventPublisher,- AutoCloseable,- BeanFactory,- Closeable,- ConfigurableApplicationContext,- EnvironmentCapable,- HierarchicalBeanFactory,- Lifecycle,- ListableBeanFactory,- MessageSource,- ResourceLoader,- ResourcePatternResolver,- WebApplicationContext
- All Known Implementing Classes:
- AbstractRefreshableWebApplicationContext,- AnnotationConfigWebApplicationContext,- GenericWebApplicationContext,- GroovyWebApplicationContext,- StaticWebApplicationContext,- XmlWebApplicationContext
public interface ConfigurableWebApplicationContext
extends WebApplicationContext, ConfigurableApplicationContext
Interface to be implemented by configurable web application contexts.
 Supported by 
ContextLoader and
 FrameworkServlet.
 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.
- Since:
- 05.12.2003
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringPrefix for ApplicationContext ids that refer to context path and/or servlet name.static final StringName of the ServletConfig environment bean in the factory.Fields inherited from interface org.springframework.beans.factory.BeanFactoryFACTORY_BEAN_PREFIXFields inherited from interface org.springframework.context.ConfigurableApplicationContextAPPLICATION_STARTUP_BEAN_NAME, CONFIG_LOCATION_DELIMITERS, CONVERSION_SERVICE_BEAN_NAME, ENVIRONMENT_BEAN_NAME, LOAD_TIME_WEAVER_BEAN_NAME, SHUTDOWN_HOOK_THREAD_NAME, SYSTEM_ENVIRONMENT_BEAN_NAME, SYSTEM_PROPERTIES_BEAN_NAMEFields inherited from interface org.springframework.core.io.ResourceLoaderCLASSPATH_URL_PREFIXFields inherited from interface org.springframework.core.io.support.ResourcePatternResolverCLASSPATH_ALL_URL_PREFIXFields inherited from interface org.springframework.web.context.WebApplicationContextCONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAME
- 
Method SummaryModifier and TypeMethodDescriptionString[]Return the config locations for this web application context, ornullif none specified.Return the namespace for this web application context, if any.Return the ServletConfig for this web application context, if any.voidsetConfigLocation(String configLocation) Set the config locations for this web application context in init-param style, i.e.voidsetConfigLocations(String... configLocations) Set the config locations for this web application context.voidsetNamespace(String namespace) Set the namespace for this web application context, to be used for building a default context config location.voidsetServletConfig(ServletConfig servletConfig) Set the ServletConfig for this web application context.voidsetServletContext(ServletContext servletContext) Set the ServletContext for this web application context.Methods inherited from interface org.springframework.context.ApplicationContextgetApplicationName, getAutowireCapableBeanFactory, getDisplayName, getId, getParent, getStartupDateMethods inherited from interface org.springframework.context.ApplicationEventPublisherpublishEvent, publishEventMethods inherited from interface org.springframework.beans.factory.BeanFactorycontainsBean, getAliases, getBean, getBean, getBean, getBean, getBean, getBeanProvider, getBeanProvider, getType, getType, isPrototype, isSingleton, isTypeMatch, isTypeMatchMethods inherited from interface org.springframework.context.ConfigurableApplicationContextaddApplicationListener, addBeanFactoryPostProcessor, addProtocolResolver, close, getApplicationStartup, getBeanFactory, getEnvironment, isActive, refresh, registerShutdownHook, setApplicationStartup, setClassLoader, setEnvironment, setId, setParentMethods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactorycontainsLocalBean, getParentBeanFactoryMethods inherited from interface org.springframework.beans.factory.ListableBeanFactorycontainsBeanDefinition, findAnnotationOnBean, findAnnotationOnBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanNamesForAnnotation, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansOfType, getBeansWithAnnotationMethods inherited from interface org.springframework.context.MessageSourcegetMessage, getMessage, getMessageMethods inherited from interface org.springframework.core.io.ResourceLoadergetClassLoader, getResourceMethods inherited from interface org.springframework.core.io.support.ResourcePatternResolvergetResourcesMethods inherited from interface org.springframework.web.context.WebApplicationContextgetServletContext
- 
Field Details- 
APPLICATION_CONTEXT_ID_PREFIXPrefix for ApplicationContext ids that refer to context path and/or servlet name.
- 
SERVLET_CONFIG_BEAN_NAMEName of the ServletConfig environment bean in the factory.- See Also:
 
 
- 
- 
Method Details- 
setServletContextSet 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. - See Also:
 
- 
setServletConfigSet the ServletConfig for this web application context. Only called for a WebApplicationContext that belongs to a specific Servlet.- See Also:
 
- 
getServletConfigReturn the ServletConfig for this web application context, if any.
- 
setNamespaceSet 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.
- 
getNamespaceReturn the namespace for this web application context, if any.
- 
setConfigLocationSet 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. 
- 
setConfigLocationsSet 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. 
- 
getConfigLocationsReturn the config locations for this web application context, ornullif none specified.
 
-