类 ConfigurationProperty
- java.lang.Object
- org.springframework.boot.context.properties.source.ConfigurationProperty
- 所有已实现的接口:
Comparable<ConfigurationProperty>
,OriginProvider
public final class ConfigurationProperty extends Object implements OriginProvider, Comparable<ConfigurationProperty>
A single configuration property obtained from aConfigurationPropertySource
consisting of aname
,value
and optionalorigin
.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 ConfigurationProperty(ConfigurationPropertyName name, Object value, Origin origin)
构造器详细资料
ConfigurationProperty
public ConfigurationProperty(ConfigurationPropertyName name, Object value, Origin origin)
方法详细资料
getName
public ConfigurationPropertyName getName()
getOrigin
public Origin getOrigin()
从接口复制的说明:OriginProvider
Return the source origin ornull
if the origin is not known.- 指定者:
getOrigin
在接口中OriginProvider
- 返回:
- the origin or
null
compareTo
public int compareTo(ConfigurationProperty other)
- 指定者:
compareTo
在接口中Comparable<ConfigurationProperty>