类 PropertySourcesPropertyValues

  • 所有已实现的接口:
    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.
    • 构造器详细资料

      • PropertySourcesPropertyValues

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

        public PropertySourcesPropertyValues​(org.springframework.core.env.PropertySources propertySources,
                                             boolean resolvePlaceholders)
        Create a new PropertyValues from the given PropertySources that will optionally resolve placeholders.
        参数:
        propertySources - a PropertySources instance
        resolvePlaceholders - true if placeholders should be resolved.
        从以下版本开始:
        1.5.2
      • PropertySourcesPropertyValues

        public PropertySourcesPropertyValues​(org.springframework.core.env.PropertySources propertySources,
                                             Collection<String> includePatterns,
                                             Collection<String> nonEnumerableFallbackNames)
        Create a new PropertyValues from the given PropertySources.
        参数:
        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.
    • 方法详细资料

      • getPropertyValues

        public org.springframework.beans.PropertyValue[] getPropertyValues()
        指定者:
        getPropertyValues 在接口中 org.springframework.beans.PropertyValues
      • getPropertyValue

        public org.springframework.beans.PropertyValue getPropertyValue​(String propertyName)
        指定者:
        getPropertyValue 在接口中 org.springframework.beans.PropertyValues
      • changesSince

        public org.springframework.beans.PropertyValues changesSince​(org.springframework.beans.PropertyValues old)
        指定者:
        changesSince 在接口中 org.springframework.beans.PropertyValues
      • contains

        public boolean contains​(String propertyName)
        指定者:
        contains 在接口中 org.springframework.beans.PropertyValues
      • isEmpty

        public boolean isEmpty()
        指定者:
        isEmpty 在接口中 org.springframework.beans.PropertyValues