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
    • 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> patterns,
                                     Collection<String> names)
        Create a new PropertyValues from the given PropertySources
        Parameters:
        propertySources - a PropertySources instance
        patterns - property name patterns to include from system properties and environment variables
        names - exact property names to include
    • 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 © 2014 Pivotal Software, Inc.. All rights reserved.