public class PropertySourceOrigin extends Object implements Origin
Origin from a PropertySource.| Constructor and Description |
|---|
PropertySourceOrigin(PropertySource<?> propertySource,
String propertyName)
Create a new
PropertySourceOrigin instance. |
| Modifier and Type | Method and Description |
|---|---|
static Origin |
get(PropertySource<?> propertySource,
String name)
|
String |
getPropertyName()
Return the property name that was used when obtaining the original value from the
property source. |
PropertySource<?> |
getPropertySource()
Return the origin
PropertySource. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfrom, getParent, parentsFrompublic PropertySourceOrigin(PropertySource<?> propertySource, String propertyName)
PropertySourceOrigin instance.propertySource - the property sourcepropertyName - the name from the property sourcepublic PropertySource<?> getPropertySource()
PropertySource.public String getPropertyName()
property source.public static Origin get(PropertySource<?> propertySource, String name)
Origin for the given PropertySource and
propertyName. Will either return an OriginLookup result or a
PropertySourceOrigin.propertySource - the origin property sourcename - the property name