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> names)
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> names)
propertySources
- a PropertySources instanceincludePatterns
- property name patterns to include from system properties and
environment variablesnames
- exact property names to includepublic org.springframework.beans.PropertyValue[] getPropertyValues()
getPropertyValues
in interface org.springframework.beans.PropertyValues
public org.springframework.beans.PropertyValue getPropertyValue(String propertyName)
getPropertyValue
in interface org.springframework.beans.PropertyValues
public org.springframework.beans.PropertyValues changesSince(org.springframework.beans.PropertyValues old)
changesSince
in interface org.springframework.beans.PropertyValues
public boolean contains(String propertyName)
contains
in interface org.springframework.beans.PropertyValues
public boolean isEmpty()
isEmpty
in interface org.springframework.beans.PropertyValues
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.