org.springframework.web.context
Interface ConfigurableWebEnvironment
- All Superinterfaces:
- ConfigurableEnvironment, ConfigurablePropertyResolver, Environment, PropertyResolver
- All Known Implementing Classes:
- StandardServletEnvironment
public interface ConfigurableWebEnvironment
- extends ConfigurableEnvironment
Specialization of ConfigurableEnvironment allowing initialization of
servlet-related PropertySource objects at the
earliest moment the ServletContext and (optionally) ServletConfig
become available.
- Since:
- 3.1.2
- Author:
- Chris Beams
- See Also:
ConfigurableWebApplicationContext.getEnvironment()
initPropertySources
void initPropertySources(ServletContext servletContext,
ServletConfig servletConfig)
- Replace any stub property source
instances acting as placeholders with real servlet context/config property sources
using the given parameters.
- Parameters:
servletContext - the ServletContext (may not be null)servletConfig - the ServletContext (null if not available)