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, getPropertyNames
equals, getName, getSource, hashCode, named, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOrigin
public 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.MapPropertySource
public Origin getOrigin(java.lang.String name)
OriginLookup
null
if the origin cannot be
determined.getOrigin
in interface OriginLookup<java.lang.String>
name
- the key to lookupnull
public boolean isImmutable()
OriginLookup
true
if this lookup is immutable and has contents that will never
change.isImmutable
in interface OriginLookup<java.lang.String>