Class OriginTrackedMapPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<Map<String,Object>>
 
org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
 
org.springframework.core.env.MapPropertySource
org.springframework.boot.env.OriginTrackedMapPropertySource
- All Implemented Interfaces:
- PropertySourceInfo, OriginLookup<String>
public final class OriginTrackedMapPropertySource
extends MapPropertySource
implements PropertySourceInfo, OriginLookup<String>
- Since:
- 2.0.0
- Author:
- Madhura Bhave, Phillip Webb
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class PropertySourcePropertySource.StubPropertySource
- 
Field SummaryFields inherited from class 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 TypeMethodDescription@Nullable OriginReturn the origin of the given key ornullif the origin cannot be determined.@Nullable ObjectgetProperty(String name) booleanReturntrueif this lookup is immutable and has contents that will never change.Methods inherited from class MapPropertySourcecontainsProperty, getPropertyNamesMethods inherited from interface PropertySourceInfogetPrefix
- 
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:PropertySourceInfoReturntrueif this lookup is immutable and has contents that will never change.- Specified by:
- isImmutablein interface- PropertySourceInfo
- Returns:
- if the lookup is immutable
 
 
-