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 Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from interface ConfigurableEnvironment
addActiveProfile, getPropertySources, getSystemEnvironment, getSystemProperties, merge, setActiveProfiles, setDefaultProfiles
Methods inherited from interface ConfigurablePropertyResolver
getConversionService, setConversionService, setEscapeCharacter, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, validateRequiredProperties
Methods inherited from interface Environment
acceptsProfiles, acceptsProfiles, getActiveProfiles, getDefaultProfiles, matchesProfiles
Methods inherited from interface PropertyResolver
containsProperty, getProperty, getProperty, getProperty, getProperty, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholders
-
Method Details
-
initPropertySources
void 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
- theServletContext
(null
if not available)servletConfig
- theServletConfig
(null
if not available)- See Also:
-