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() |
public 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 nameCopyright © 2021 Pivotal Software, Inc.. All rights reserved.