Java org.springframework.context.support PropertySourcesPlaceholderConfigurer fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.context.support PropertySourcesPlaceholderConfigurer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.context.support PropertySourcesPlaceholderConfigurer.

The text is from its open source code.

Subclass

org.springframework.context.support.PropertySourcesPlaceholderConfigurer has subclasses.
Click this link to see all its subclasses.

Field

StringLOCAL_PROPERTIES_PROPERTY_SOURCE_NAME
is the name given to the PropertySource for the set of #mergeProperties() merged properties supplied to this configurer.

Constructor

Method

PropertySourcesgetAppliedPropertySources()
Return the property sources that were actually applied during #postProcessBeanFactory(ConfigurableListableBeanFactory) post-processing .
ClassgetClass()
Returns the runtime class of this Object .
voidpostProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
Processing occurs by replacing ${...} placeholders in bean definitions by resolving each against this configurer's set of PropertySources , which includes:
  • all org.springframework.core.env.ConfigurableEnvironment#getPropertySources environment property sources , if an Environment #setEnvironment is present
  • #mergeProperties merged local properties , if #setLocation any #setLocations have #setProperties been #setPropertiesArray specified
  • any property sources set by calling #setPropertySources

If #setPropertySources is called, environment and local properties will be ignored.

voidsetEnvironment(Environment environment)
PropertySources from the given Environment will be searched when replacing ${...} placeholders.
voidsetIgnoreResourceNotFound(boolean ignoreResourceNotFound)
Set if failure to find the property resource should be ignored.
voidsetIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders)
Set whether to ignore unresolvable placeholders.
voidsetLocalOverride(boolean localOverride)
Set whether local properties override properties from files.
voidsetLocation(Resource location)
Set a location of a properties file to be loaded.
voidsetLocations(Resource... locations)
Set locations of properties files to be loaded.
voidsetNullValue(String nullValue)
Set a value that should be treated as null when resolved as a placeholder value: e.g.
voidsetOrder(int order)
Set the order value of this object for sorting purposes.
voidsetPlaceholderPrefix(String placeholderPrefix)
Set the prefix that a placeholder string starts with.
voidsetPlaceholderSuffix(String placeholderSuffix)
Set the suffix that a placeholder string ends with.
voidsetProperties(Properties properties)
Set local properties, e.g.
voidsetPropertySources(PropertySources propertySources)
Customize the set of PropertySources to be used by this configurer.