org.springframework.boot.bind

Class PropertySourcesPropertyValues

  • All Implemented Interfaces:
    org.springframework.beans.PropertyValues


    public class PropertySourcesPropertyValues
    extends Object
    implements org.springframework.beans.PropertyValues
    A PropertyValues implementation backed by a PropertySources, bridging the two abstractions and allowing (for instance) a regular DataBinder to be used with the latter.
    Author:
    Dave Syer, Phillip Webb
    • Constructor Detail

      • PropertySourcesPropertyValues

        public PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources)
        Create a new PropertyValues from the given PropertySources.
        Parameters:
        propertySources - a PropertySources instance
      • PropertySourcesPropertyValues

        public PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources,
                                             Collection<String> includePatterns,
                                             Collection<String> nonEnumerableFallbackNames)
        Create a new PropertyValues from the given PropertySources.
        Parameters:
        propertySources - a PropertySources instance
        includePatterns - property name patterns to include from system properties and environment variables
        nonEnumerableFallbackNames - the property names to try in lieu of an EnumerablePropertySource.
    • Method Detail

      • getPropertyValues

        public org.springframework.beans.PropertyValue[] getPropertyValues()
        Specified by:
        getPropertyValues in interface org.springframework.beans.PropertyValues
      • getPropertyValue

        public org.springframework.beans.PropertyValue getPropertyValue(String propertyName)
        Specified by:
        getPropertyValue in interface org.springframework.beans.PropertyValues
      • changesSince

        public org.springframework.beans.PropertyValues changesSince(org.springframework.beans.PropertyValues old)
        Specified by:
        changesSince in interface org.springframework.beans.PropertyValues
      • contains

        public boolean contains(String propertyName)
        Specified by:
        contains in interface org.springframework.beans.PropertyValues
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.springframework.beans.PropertyValues

Copyright © 2017 Pivotal Software, Inc.. All rights reserved.