Constructor and Description |
---|
PropertySourceOrigin(org.springframework.core.env.PropertySource<?> propertySource,
String propertyName)
Create a new
PropertySourceOrigin instance. |
Modifier and Type | Method and Description |
---|---|
static Origin |
get(org.springframework.core.env.PropertySource<?> propertySource,
String name)
|
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 . |
String |
toString() |
public PropertySourceOrigin(org.springframework.core.env.PropertySource<?> propertySource, String propertyName)
PropertySourceOrigin
instance.propertySource
- the property sourcepropertyName
- the name from the property sourcepublic org.springframework.core.env.PropertySource<?> getPropertySource()
PropertySource
.public String getPropertyName()
property source
.public static Origin get(org.springframework.core.env.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 © 2020 Pivotal Software, Inc.. All rights reserved.