Package org.springframework.boot.env
Class OriginTrackedMapPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
 
org.springframework.core.env.MapPropertySource
org.springframework.boot.env.OriginTrackedMapPropertySource
- All Implemented Interfaces:
- OriginLookup<String>
public final class OriginTrackedMapPropertySource
extends MapPropertySource
implements OriginLookup<String>
- Since:
- 2.0.0
- Author:
- Madhura Bhave, Phillip Webb
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.core.env.PropertySourcePropertySource.StubPropertySource
- 
Field SummaryFields inherited from class org.springframework.core.env.PropertySourcelogger, name, source
- 
Constructor SummaryConstructorsConstructorDescriptionOriginTrackedMapPropertySource(String name, Map source) Create a newOriginTrackedMapPropertySourceinstance.OriginTrackedMapPropertySource(String name, Map source, boolean immutable) Create a newOriginTrackedMapPropertySourceinstance.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the origin of the given key ornullif the origin cannot be determined.getProperty(String name) booleanReturntrueif this lookup is immutable and has contents that will never change.Methods inherited from class org.springframework.core.env.MapPropertySourcecontainsProperty, getPropertyNamesMethods inherited from class org.springframework.core.env.PropertySourceequals, getName, getSource, hashCode, named, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.boot.origin.OriginLookupgetPrefix
- 
Constructor Details- 
OriginTrackedMapPropertySourceCreate a newOriginTrackedMapPropertySourceinstance.- Parameters:
- name- the property source name
- source- the underlying map source
 
- 
OriginTrackedMapPropertySourceCreate a newOriginTrackedMapPropertySourceinstance.- Parameters:
- name- the property source name
- source- the underlying map source
- immutable- if the underlying source is immutable and guaranteed not to change
- Since:
- 2.2.0
 
 
- 
- 
Method Details- 
getProperty- Overrides:
- getPropertyin class- MapPropertySource
 
- 
getOriginDescription copied from interface:OriginLookupReturn the origin of the given key ornullif the origin cannot be determined.- Specified by:
- getOriginin interface- OriginLookup<String>
- Parameters:
- name- the key to lookup
- Returns:
- the origin of the key or null
 
- 
isImmutablepublic boolean isImmutable()Description copied from interface:OriginLookupReturntrueif this lookup is immutable and has contents that will never change.- Specified by:
- isImmutablein interface- OriginLookup<String>
- Returns:
- if the lookup is immutable
 
 
-