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> names)
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> names)
propertySources - a PropertySources instanceincludePatterns - property name patterns to include from system properties and
environment variablesnames - exact property names to includepublic 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 © 2015 Pivotal Software, Inc.. All rights reserved.