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 PropertyValues
public PropertyValue getPropertyValue(String propertyName)
getPropertyValue
in interface PropertyValues
public PropertyValues changesSince(PropertyValues old)
changesSince
in interface PropertyValues
public boolean contains(String propertyName)
contains
in interface PropertyValues
public boolean isEmpty()
isEmpty
in interface PropertyValues
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.