public class PropertySourcesPropertyValues extends Object implements 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(PropertySources propertySources)
Create a new PropertyValues from the given PropertySources.
|
PropertySourcesPropertyValues(PropertySources propertySources,
Collection<String> includePatterns,
Collection<String> nonEnumerableFallbackNames)
Create a new PropertyValues from the given PropertySources.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyValues |
changesSince(PropertyValues old) |
boolean |
contains(String propertyName) |
PropertyValue |
getPropertyValue(String propertyName) |
PropertyValue[] |
getPropertyValues() |
boolean |
isEmpty() |
public PropertySourcesPropertyValues(PropertySources propertySources)
propertySources - a PropertySources instancepublic PropertySourcesPropertyValues(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 PropertyValue[] getPropertyValues()
getPropertyValues in interface PropertyValuespublic PropertyValue getPropertyValue(String propertyName)
getPropertyValue in interface PropertyValuespublic PropertyValues changesSince(PropertyValues old)
changesSince in interface PropertyValuespublic boolean contains(String propertyName)
contains in interface PropertyValuespublic boolean isEmpty()
isEmpty in interface PropertyValuesCopyright © 2016 Pivotal Software, Inc.. All rights reserved.