public final class OriginTrackedMapPropertySource extends org.springframework.core.env.MapPropertySource implements OriginLookup<String>
OriginTrackedValue| Constructor and Description |
|---|
OriginTrackedMapPropertySource(String name,
Map source)
Create a new
OriginTrackedMapPropertySource instance. |
OriginTrackedMapPropertySource(String name,
Map source,
boolean immutable)
Create a new
OriginTrackedMapPropertySource instance. |
| Modifier and Type | Method and Description |
|---|---|
Origin |
getOrigin(String name)
Return the origin of the given key or
null if the origin cannot be
determined. |
Object |
getProperty(String name) |
boolean |
isImmutable()
Return
true if this PropertySource is immutable and has contents
that will never change. |
containsProperty, getPropertyNamesequals, getName, getSource, hashCode, named, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOriginpublic OriginTrackedMapPropertySource(String name, Map source)
OriginTrackedMapPropertySource instance.name - the property source namesource - the underlying map sourcepublic OriginTrackedMapPropertySource(String name, Map source, boolean immutable)
OriginTrackedMapPropertySource instance.name - the property source namesource - the underlying map sourceimmutable - if the underlying source is immutable and guaranteed not to changepublic Object getProperty(String name)
getProperty in class org.springframework.core.env.MapPropertySourcepublic Origin getOrigin(String name)
OriginLookupnull if the origin cannot be
determined.getOrigin in interface OriginLookup<String>name - the key to lookupnullpublic boolean isImmutable()
true if this PropertySource is immutable and has contents
that will never change.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.