Static {@link org.springframework.web.context.WebApplicationContext}implementation for testing. Not intended for use in production applications.
Implements the {@link org.springframework.web.context.ConfigurableWebApplicationContext}interface to allow for direct replacement of an {@link XmlWebApplicationContext}, despite not actually supporting external configuration files.
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 {@link org.springframework.core.io.DefaultResourceLoader}.
In addition to the special beans detected by {@link org.springframework.context.support.AbstractApplicationContext}, this class detects a bean of type {@link org.springframework.ui.context.ThemeSource}in the context, under the special bean name "themeSource".
@author Rod Johnson
@author Juergen Hoeller
@see org.springframework.ui.context.ThemeSource