public interface ConfigurableWebEnvironment extends ConfigurableEnvironment
ConfigurableEnvironment allowing initialization of
servlet-related PropertySource objects at the
earliest moment that the ServletContext and (optionally) ServletConfig
become available.EnvironmentCapable.getEnvironment()| Modifier and Type | Method and Description |
|---|---|
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.
|
addActiveProfile, getPropertySources, getSystemEnvironment, getSystemProperties, merge, setActiveProfiles, setDefaultProfilesacceptsProfiles, getActiveProfiles, getDefaultProfilesgetConversionService, setConversionService, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, validateRequiredPropertiescontainsProperty, getProperty, getProperty, getProperty, getProperty, getPropertyAsClass, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholdersvoid initPropertySources(ServletContext servletContext,
ServletConfig servletConfig)
servletContext - the ServletContext (may not be null)servletConfig - the ServletConfig (null if not available)WebApplicationContextUtils.initServletPropertySources(
org.springframework.core.env.MutablePropertySources, ServletContext, ServletConfig)