Constructor and Description |
---|
PropertySourceOrigin(org.springframework.core.env.PropertySource<?> propertySource,
java.lang.String propertyName)
Create a new
PropertySourceOrigin instance. |
Modifier and Type | Method and Description |
---|---|
static Origin |
get(org.springframework.core.env.PropertySource<?> propertySource,
java.lang.String name)
|
java.lang.String |
getPropertyName()
Return the property name that was used when obtaining the original value from the
property source . |
org.springframework.core.env.PropertySource<?> |
getPropertySource()
Return the origin
PropertySource . |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
from, getParent, parentsFrom
public PropertySourceOrigin(org.springframework.core.env.PropertySource<?> propertySource, java.lang.String propertyName)
PropertySourceOrigin
instance.propertySource
- the property sourcepropertyName
- the name from the property sourcepublic org.springframework.core.env.PropertySource<?> getPropertySource()
PropertySource
.public java.lang.String getPropertyName()
property source
.public java.lang.String toString()
toString
in class java.lang.Object
public static Origin get(org.springframework.core.env.PropertySource<?> propertySource, java.lang.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