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, setDefaultProfiles
acceptsProfiles, getActiveProfiles, getDefaultProfiles
getConversionService, setConversionService, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, validateRequiredProperties
containsProperty, getProperty, getProperty, getProperty, getProperty, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholders
void initPropertySources(@Nullable ServletContext servletContext, @Nullable 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)