Package | Description |
---|---|
org.springframework.core.env |
Spring's environment abstraction consisting of bean definition
profile and hierarchical property source support.
|
org.springframework.web.context.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
Modifier and Type | Method and Description |
---|---|
MutablePropertySources |
AbstractEnvironment.getPropertySources() |
MutablePropertySources |
ConfigurableEnvironment.getPropertySources()
Return the
PropertySources for this Environment in mutable form,
allowing for manipulation of the set of PropertySource objects that should
be searched when resolving properties against this Environment object. |
Modifier and Type | Method and Description |
---|---|
protected void |
StandardEnvironment.customizePropertySources(MutablePropertySources propertySources)
Customize the set of property sources with those appropriate for any standard
Java environment:
"systemProperties"
"systemEnvironment"
|
protected void |
AbstractEnvironment.customizePropertySources(MutablePropertySources propertySources)
Customize the set of
PropertySource objects to be searched by this
Environment during calls to AbstractEnvironment.getProperty(String) and related
methods. |
Modifier and Type | Method and Description |
---|---|
protected 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 of
WebApplicationContextUtils.initServletPropertySources(MutablePropertySources,
ServletContext, ServletConfig) that always provides null for the
ServletConfig parameter. |
static void |
WebApplicationContextUtils.initServletPropertySources(MutablePropertySources sources,
ServletContext servletContext,
ServletConfig servletConfig)
Replace
Servlet -based stub property sources with
actual instances populated with the given servletContext and
servletConfig objects. |