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> patterns,
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> patterns, Collection<String> names)
propertySources
- a PropertySources instancepatterns
- property name patterns to include from system properties and
environment variablesnames
- exact property names to includepublic 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 © 2014. All rights reserved.