Package org.springframework.boot.env
Class OriginTrackedMapPropertySource
- All Implemented Interfaces:
OriginLookup<String>
public final class OriginTrackedMapPropertySource extends org.springframework.core.env.MapPropertySource implements OriginLookup<String>
- Since:
- 2.0.0
- See Also:
OriginTrackedValue
Constructor Summary
Constructors Constructor Description OriginTrackedMapPropertySource(String name, Map source)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Origin
getOrigin(String name)
Return the origin of the given key ornull
if the origin cannot be determined.Object
getProperty(String name)
Methods inherited from class org.springframework.core.env.MapPropertySource
containsProperty, getPropertyNames
Constructor Detail
OriginTrackedMapPropertySource
public OriginTrackedMapPropertySource(String name, Map source)
Method Detail
getProperty
public Object getProperty(String name)
- Overrides:
getProperty
in classorg.springframework.core.env.MapPropertySource
getOrigin
public Origin getOrigin(String name)
Description copied from interface:OriginLookup
Return the origin of the given key ornull
if the origin cannot be determined.- Specified by:
getOrigin
in interfaceOriginLookup<String>
- Parameters:
name
- the key to lookup- Returns:
- the origin of the key or
null