类 PropertySourceOrigin
java.lang.Object
org.springframework.boot.origin.PropertySourceOrigin
- 所有已实现的接口:
Origin
,OriginProvider
Origin
from a PropertySource
.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
构造器概要
构造器构造器说明PropertySourceOrigin
(PropertySource<?> propertySource, String propertyName) Create a newPropertySourceOrigin
instance.PropertySourceOrigin
(PropertySource<?> propertySource, String propertyName, Origin origin) Create a newPropertySourceOrigin
instance. -
方法概要
修饰符和类型方法说明static Origin
get
(PropertySource<?> propertySource, String name) Return the actual origin for the source if known.Return the parent origin for this instance if there is one.Return the property name that was used when obtaining the original value from theproperty source
.Return the originPropertySource
.toString()
-
构造器详细资料
-
PropertySourceOrigin
Create a newPropertySourceOrigin
instance.- 参数:
propertySource
- the property sourcepropertyName
- the name from the property source
-
PropertySourceOrigin
Create a newPropertySourceOrigin
instance.- 参数:
propertySource
- the property sourcepropertyName
- the name from the property sourceorigin
- the actual origin for the source if known- 从以下版本开始:
- 3.2.8
-
-
方法详细资料
-
getPropertySource
Return the originPropertySource
.- 返回:
- the origin property source
-
getPropertyName
Return the property name that was used when obtaining the original value from theproperty source
.- 返回:
- the origin property name
-
getOrigin
Return the actual origin for the source if known.- 指定者:
getOrigin
在接口中OriginProvider
- 返回:
- the actual source origin
- 从以下版本开始:
- 3.2.8
-
getParent
从接口复制的说明:Origin
Return the parent origin for this instance if there is one. The parent origin provides the origin of the item that created this one. -
toString
-
get
Get anOrigin
for the givenPropertySource
andpropertyName
. Will either return anOriginLookup
result or aPropertySourceOrigin
.- 参数:
propertySource
- the origin property sourcename
- the property name- 返回:
- the property origin
-