Package org.springframework.boot.origin
Class PropertySourceOrigin
java.lang.Object
org.springframework.boot.origin.PropertySourceOrigin
- All Implemented Interfaces:
 Origin
Origin from a PropertySource.- Since:
 - 2.0.0
 - Author:
 - Phillip Webb
 
- 
Constructor Summary
ConstructorsConstructorDescriptionPropertySourceOrigin(PropertySource<?> propertySource, String propertyName) Create a newPropertySourceOrigininstance. - 
Method Summary
Modifier and TypeMethodDescriptionstatic Originget(PropertySource<?> propertySource, String name) Return the property name that was used when obtaining the original value from theproperty source.Return the originPropertySource.toString() 
- 
Constructor Details
- 
PropertySourceOrigin
Create a newPropertySourceOrigininstance.- Parameters:
 propertySource- the property sourcepropertyName- the name from the property source
 
 - 
 - 
Method Details
- 
getPropertySource
Return the originPropertySource.- Returns:
 - the origin property source
 
 - 
getPropertyName
Return the property name that was used when obtaining the original value from theproperty source.- Returns:
 - the origin property name
 
 - 
toString
 - 
get
Get anOriginfor the givenPropertySourceandpropertyName. Will either return anOriginLookupresult or aPropertySourceOrigin.- Parameters:
 propertySource- the origin property sourcename- the property name- Returns:
 - the property origin
 
 
 -