Subclass of {@link GenericApplicationContext}, suitable for web environments.
Implements the {@link org.springframework.web.context.ConfigurableWebApplicationContext}, but is not intended for declarative setup in web.xml
. Instead, it is designed for programmatic setup, for example for building nested contexts or for use within Spring 3.1 {@link org.springframework.web.WebApplicationInitializer}s.
If you intend to implement a WebApplicationContext that reads bean definitions from configuration files, consider deriving from AbstractRefreshableWebApplicationContext, reading the bean definitions in an implementation of the loadBeanDefinitions
method.
Interprets resource paths as servlet context resources, i.e. as paths beneath the web application root. Absolute paths, e.g. for files outside the web app root, can be accessed via "file:" URLs, as implemented by AbstractApplicationContext.
In addition to the special beans detected by {@link org.springframework.context.support.AbstractApplicationContext}, this class detects a ThemeSource bean in the context, with the name "themeSource".
@author Juergen Hoeller
@author Chris Beams
@since 1.2