java.lang.Object | ||||
↳ | org.springframework.core.io.support.PropertiesLoaderSupport | |||
↳ | org.springframework.beans.factory.config.PropertyResourceConfigurer | |||
↳ | org.springframework.beans.factory.config.PlaceholderConfigurerSupport | |||
↳ | org.springframework.context.support.PropertySourcesPlaceholderConfigurer |
Specialization of PlaceholderConfigurerSupport
Local properties are added as a property source in any case. Precedence is based
on the value of the localOverride
property.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ENVIRONMENT_PROPERTIES_PROPERTY_SOURCE_NAME | {@value } is the name given to the PropertySource that wraps the
environment supplied to this configurer. |
|||||||||
String | LOCAL_PROPERTIES_PROPERTY_SOURCE_NAME | {@value } is the name given to the PropertySource for the set of
merged properties supplied to this configurer. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.factory.config.PlaceholderConfigurerSupport
| |||||||||||
From class
org.springframework.core.io.support.PropertiesLoaderSupport
| |||||||||||
From interface
org.springframework.core.Ordered
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.factory.config.PlaceholderConfigurerSupport
| |||||||||||
From class
org.springframework.core.io.support.PropertiesLoaderSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Merge , convert and
process properties against the given bean factory.
Processing occurs by replacing ${...} placeholders in bean definitions by resolving each
against this configurer's set of
If | |||||||||||
Set the
Environment that this object runs in.
| |||||||||||
Customize the set of
PropertySources to be used by this configurer. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Visit each bean definition in the given bean factory and attempt to replace ${...} property
placeholders with values from the given properties.
| |||||||||||
This method is deprecated.
in favor of
processProperties(ConfigurableListableBeanFactory, ConfigurablePropertyResolver) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.factory.config.PlaceholderConfigurerSupport
| |||||||||||
From class
org.springframework.beans.factory.config.PropertyResourceConfigurer
| |||||||||||
From class
org.springframework.core.io.support.PropertiesLoaderSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanFactoryAware
| |||||||||||
From interface
org.springframework.beans.factory.BeanNameAware
| |||||||||||
From interface
org.springframework.beans.factory.config.BeanFactoryPostProcessor
| |||||||||||
From interface
org.springframework.context.EnvironmentAware
| |||||||||||
From interface
org.springframework.core.Ordered
|
{@value } is the name given to the PropertySource
that wraps the
environment
supplied to this configurer.
{@value } is the name given to the PropertySource
for the set of
merged properties
supplied to this configurer.
Merge
, convert
and
process
properties against the given bean factory.
Processing occurs by replacing ${...} placeholders in bean definitions by resolving each
against this configurer's set of PropertySources
, which includes:
Environment
is present
merged local properties
, if any
have
been
specified
setPropertySources(PropertySources)
If setPropertySources(PropertySources)
is called, environment and local properties will be
ignored. This method is designed to give the user fine-grained control over property
sources, and once set, the configurer makes no assumptions about adding additional sources.
beanFactory | the bean factory used by the application context |
---|
BeansException |
---|
Set the Environment
that this object runs in.
PropertySources
from this environment will be searched when replacing ${...} placeholders.
Customize the set of PropertySources
to be used by this configurer.
Setting this property indicates that environment property sources and local
properties should be ignored.
Visit each bean definition in the given bean factory and attempt to replace ${...} property placeholders with values from the given properties.
BeansException |
---|
This method is deprecated.
in favor of processProperties(ConfigurableListableBeanFactory, ConfigurablePropertyResolver)
Implemented for compatibility with PlaceholderConfigurerSupport
.
beanFactory | the BeanFactory used by the application context |
---|---|
props | the Properties to apply |