类 PropertySourcesPropertyValues
- java.lang.Object
- org.springframework.boot.bind.PropertySourcesPropertyValues
- 所有已实现的接口:
org.springframework.beans.PropertyValues
public class PropertySourcesPropertyValues extends Object implements org.springframework.beans.PropertyValues
APropertyValues
implementation backed by aPropertySources
, bridging the two abstractions and allowing (for instance) a regularDataBinder
to be used with the latter.
构造器概要
构造器 构造器 说明 PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources)
Create a new PropertyValues from the given PropertySources.PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources, boolean resolvePlaceholders)
Create a new PropertyValues from the given PropertySources that will optionally resolve placeholders.PropertySourcesPropertyValues(org.springframework.core.env.PropertySources propertySources, Collection<String> includePatterns, Collection<String> nonEnumerableFallbackNames)
Create a new PropertyValues from the given PropertySources.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()
构造器详细资料
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 instanceresolvePlaceholders
-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 instanceincludePatterns
- property name patterns to include from system properties and environment variablesnonEnumerableFallbackNames
- the property names to try in lieu of anEnumerablePropertySource
.
方法详细资料
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