类 PropertySourceOrigin
java.lang.Object
cn.taketoday.origin.PropertySourceOrigin
- 所有已实现的接口:
Origin
Origin from a PropertySource.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
-
构造器概要
构造器构造器说明PropertySourceOrigin(cn.taketoday.core.env.PropertySource<?> propertySource, String propertyName) Create a newPropertySourceOrigininstance. -
方法概要
修饰符和类型方法说明static OriginReturn the property name that was used when obtaining the original value from theproperty source.cn.taketoday.core.env.PropertySource<?>Return the originPropertySource.toString()
-
构造器详细资料
-
PropertySourceOrigin
public PropertySourceOrigin(cn.taketoday.core.env.PropertySource<?> propertySource, String propertyName) Create a newPropertySourceOrigininstance.- 参数:
propertySource- the property sourcepropertyName- the name from the property source
-
-
方法详细资料
-
getPropertySource
public cn.taketoday.core.env.PropertySource<?> 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
-
toString
-
get
Get anOriginfor the givenPropertySourceandpropertyName. Will either return anOriginLookupresult or aPropertySourceOrigin.- 参数:
propertySource- the origin property sourcename- the property name- 返回:
- the property origin
-