Package org.springframework.web.context
Interface ConfigurableWebEnvironment
- All Superinterfaces:
- ConfigurableEnvironment,- ConfigurablePropertyResolver,- Environment,- PropertyResolver
- All Known Implementing Classes:
- StandardServletEnvironment
Specialization of 
ConfigurableEnvironment allowing initialization of
 servlet-related PropertySource objects at the
 earliest moment that the ServletContext and (optionally) ServletConfig
 become available.- Since:
- 3.1.2
- Author:
- Chris Beams
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidinitPropertySources(ServletContext servletContext, ServletConfig servletConfig) Replace any stub property source instances acting as placeholders with real servlet context/config property sources using the given parameters.Methods inherited from interface org.springframework.core.env.ConfigurableEnvironmentaddActiveProfile, getPropertySources, getSystemEnvironment, getSystemProperties, merge, setActiveProfiles, setDefaultProfilesMethods inherited from interface org.springframework.core.env.ConfigurablePropertyResolvergetConversionService, setConversionService, setEscapeCharacter, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, validateRequiredPropertiesMethods inherited from interface org.springframework.core.env.EnvironmentacceptsProfiles, acceptsProfiles, getActiveProfiles, getDefaultProfiles, matchesProfilesMethods inherited from interface org.springframework.core.env.PropertyResolvercontainsProperty, getProperty, getProperty, getProperty, getProperty, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholders
- 
Method Details- 
initPropertySourcesvoid initPropertySources(@Nullable ServletContext servletContext, @Nullable 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(- nullif not available)
- servletConfig- the- ServletConfig(- nullif not available)
- See Also:
 
 
-