public class PropertySourcesPropertyValues extends Object implements org.springframework.beans.PropertyValues
PropertyValues
implementation backed by a PropertySources
, bridging
the two abstractions and allowing (for instance) a regular DataBinder
to be
used with the latter.Constructor and Description |
---|
PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources)
Create a new PropertyValues from the given PropertySources.
|
PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources,
boolean resolvePlaceholders)
Create a new PropertyValues from the given PropertySources that will optionally
resolve placeholders.
|
PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources,
Collection<String> includePatterns,
Collection<String> nonEnumerableFallbackNames)
Create a new PropertyValues from the given PropertySources.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.PropertyValues |
changesSince(org.springframework.beans.PropertyValues old) |
boolean |
contains(String propertyName) |
org.springframework.beans.PropertyValue |
getPropertyValue(String propertyName) |
org.springframework.beans.PropertyValue[] |
getPropertyValues() |
boolean |
isEmpty() |
public PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources)
propertySources
- a PropertySources instancepublic PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources, boolean resolvePlaceholders)
propertySources
- a PropertySources instanceresolvePlaceholders
- true
if placeholders should be resolved.public PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources, Collection<String> includePatterns, Collection<String> nonEnumerableFallbackNames)
propertySources
- a PropertySources instanceincludePatterns
- property name patterns to include from system properties and
environment variablesnonEnumerableFallbackNames
- the property names to try in lieu of an
EnumerablePropertySource
.public org.springframework.beans.PropertyValue[] getPropertyValues()
getPropertyValues
in interface org.springframework.beans.PropertyValues
public org.springframework.beans.PropertyValue getPropertyValue(String propertyName)
getPropertyValue
in interface org.springframework.beans.PropertyValues
public org.springframework.beans.PropertyValues changesSince(org.springframework.beans.PropertyValues old)
changesSince
in interface org.springframework.beans.PropertyValues
public boolean contains(String propertyName)
contains
in interface org.springframework.beans.PropertyValues
public boolean isEmpty()
isEmpty
in interface org.springframework.beans.PropertyValues
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.