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,
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,
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.PropertyValuespublic org.springframework.beans.PropertyValue getPropertyValue(String propertyName)
getPropertyValue in interface org.springframework.beans.PropertyValuespublic org.springframework.beans.PropertyValues changesSince(org.springframework.beans.PropertyValues old)
changesSince in interface org.springframework.beans.PropertyValuespublic boolean contains(String propertyName)
contains in interface org.springframework.beans.PropertyValuespublic boolean isEmpty()
isEmpty in interface org.springframework.beans.PropertyValuesCopyright © 2016 Pivotal Software, Inc.. All rights reserved.