Interface ConfigurableWebEnvironment
- All Superinterfaces:
org.springframework.core.env.ConfigurableEnvironment, org.springframework.core.env.ConfigurablePropertyResolver, org.springframework.core.env.Environment, org.springframework.core.env.PropertyResolver
- All Known Implementing Classes:
StandardServletEnvironment
public interface ConfigurableWebEnvironment
extends org.springframework.core.env.ConfigurableEnvironment
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 Summary
Modifier and TypeMethodDescriptionvoidinitPropertySources(@Nullable jakarta.servlet.ServletContext servletContext, @Nullable jakarta.servlet.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.ConfigurableEnvironment
addActiveProfile, getPropertySources, getSystemEnvironment, getSystemProperties, merge, setActiveProfiles, setDefaultProfilesMethods inherited from interface org.springframework.core.env.ConfigurablePropertyResolver
getConversionService, setConversionService, setEscapeCharacter, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, validateRequiredPropertiesMethods inherited from interface org.springframework.core.env.Environment
acceptsProfiles, acceptsProfiles, getActiveProfiles, getDefaultProfiles, matchesProfilesMethods inherited from interface org.springframework.core.env.PropertyResolver
containsProperty, getProperty, getProperty, getProperty, getProperty, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholders
-
Method Details
-
initPropertySources
void initPropertySources(@Nullable jakarta.servlet.ServletContext servletContext, @Nullable jakarta.servlet.ServletConfig servletConfig) Replace any stub property source instances acting as placeholders with real servlet context/config property sources using the given parameters.- Parameters:
servletContext- theServletContext(nullif not available)servletConfig- theServletConfig(nullif not available)- See Also:
-