Uses of Class
org.springframework.core.env.MutablePropertySources
Package
Description
Spring's environment abstraction consisting of bean definition
profile and hierarchical property source support.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.-
Uses of MutablePropertySources in org.springframework.core.env
Modifier and TypeMethodDescriptionAbstractEnvironment.getPropertySources()
ConfigurableEnvironment.getPropertySources()
Return thePropertySources
for thisEnvironment
in mutable form, allowing for manipulation of the set ofPropertySource
objects that should be searched when resolving properties against thisEnvironment
object.Modifier and TypeMethodDescriptionprotected ConfigurablePropertyResolver
AbstractEnvironment.createPropertyResolver
(MutablePropertySources propertySources) Factory method used to create theConfigurablePropertyResolver
instance used by the Environment.protected void
AbstractEnvironment.customizePropertySources
(MutablePropertySources propertySources) Customize the set ofPropertySource
objects to be searched by thisEnvironment
during calls toAbstractEnvironment.getProperty(String)
and related methods.protected void
StandardEnvironment.customizePropertySources
(MutablePropertySources propertySources) Customize the set of property sources with those appropriate for any standard Java environment: "systemProperties" "systemEnvironment"ModifierConstructorDescriptionprotected
AbstractEnvironment
(MutablePropertySources propertySources) Create a newEnvironment
instance with a specificMutablePropertySources
instance, calling back toAbstractEnvironment.customizePropertySources(MutablePropertySources)
during construction to allow subclasses to contribute or manipulatePropertySource
instances as appropriate.protected
StandardEnvironment
(MutablePropertySources propertySources) Create a newStandardEnvironment
instance with a specificMutablePropertySources
instance. -
Uses of MutablePropertySources in org.springframework.web.context.support
Modifier and TypeMethodDescriptionprotected void
StandardServletEnvironment.customizePropertySources
(MutablePropertySources propertySources) Customize the set of property sources with those contributed by superclasses as well as those appropriate for standard servlet-based environments: "servletConfigInitParams" "servletContextInitParams" "jndiProperties"static void
WebApplicationContextUtils.initServletPropertySources
(MutablePropertySources propertySources, ServletContext servletContext) Convenient variant ofWebApplicationContextUtils.initServletPropertySources(MutablePropertySources, ServletContext, ServletConfig)
that always providesnull
for theServletConfig
parameter.static void
WebApplicationContextUtils.initServletPropertySources
(MutablePropertySources sources, ServletContext servletContext, ServletConfig servletConfig) ReplaceServlet
-basedstub property sources
with actual instances populated with the givenservletContext
andservletConfig
objects.ModifierConstructorDescriptionprotected
StandardServletEnvironment
(MutablePropertySources propertySources) Create a newStandardServletEnvironment
instance with a specificMutablePropertySources
instance.