public final class OriginTrackedMapPropertySource extends org.springframework.core.env.MapPropertySource implements OriginLookup<java.lang.String>
OriginTrackedValue| Constructor and Description |
|---|
OriginTrackedMapPropertySource(java.lang.String name,
java.util.Map source)
Create a new
OriginTrackedMapPropertySource instance. |
OriginTrackedMapPropertySource(java.lang.String name,
java.util.Map source,
boolean immutable)
Create a new
OriginTrackedMapPropertySource instance. |
| Modifier and Type | Method and Description |
|---|---|
Origin |
getOrigin(java.lang.String name)
Return the origin of the given key or
null if the origin cannot be
determined. |
java.lang.Object |
getProperty(java.lang.String name) |
boolean |
isImmutable()
Return
true if this lookup is immutable and has contents that will never
change. |
containsProperty, getPropertyNamesequals, getName, getSource, hashCode, named, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOrigin, getPrefixpublic OriginTrackedMapPropertySource(java.lang.String name,
java.util.Map source)
OriginTrackedMapPropertySource instance.name - the property source namesource - the underlying map sourcepublic OriginTrackedMapPropertySource(java.lang.String name,
java.util.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 java.lang.Object getProperty(java.lang.String name)
getProperty in class org.springframework.core.env.MapPropertySourcepublic Origin getOrigin(java.lang.String name)
OriginLookupnull if the origin cannot be
determined.getOrigin in interface OriginLookup<java.lang.String>name - the key to lookupnullpublic boolean isImmutable()
OriginLookuptrue if this lookup is immutable and has contents that will never
change.isImmutable in interface OriginLookup<java.lang.String>