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 |
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. |
MutablePropertySources |
AbstractEnvironment.getPropertySources() |
Modifier and Type | Method and Description |
---|---|
protected ConfigurablePropertyResolver |
AbstractEnvironment.createPropertyResolver(MutablePropertySources propertySources)
Factory method used to create the
ConfigurablePropertyResolver
instance used by the Environment. |
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. |
protected void |
StandardEnvironment.customizePropertySources(MutablePropertySources propertySources)
Customize the set of property sources with those appropriate for any standard
Java environment:
"systemProperties"
"systemEnvironment"
|
Constructor and Description |
---|
AbstractEnvironment(MutablePropertySources propertySources)
Create a new
Environment instance with a specific
MutablePropertySources instance, calling back to
AbstractEnvironment.customizePropertySources(MutablePropertySources) during
construction to allow subclasses to contribute or manipulate
PropertySource instances as appropriate. |
StandardEnvironment(MutablePropertySources propertySources)
Create a new
StandardEnvironment instance with a specific
MutablePropertySources instance. |
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. |
Constructor and Description |
---|
StandardServletEnvironment(MutablePropertySources propertySources)
Create a new
StandardServletEnvironment instance with a specific MutablePropertySources instance. |