Package org.springframework.boot.env
Class SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
 
org.springframework.core.env.MapPropertySource
org.springframework.core.env.SystemEnvironmentPropertySource
org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
- All Implemented Interfaces:
- OriginLookup<String>
- Enclosing class:
- SystemEnvironmentPropertySourceEnvironmentPostProcessor
protected static class SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
extends org.springframework.core.env.SystemEnvironmentPropertySource
implements OriginLookup<String>
SystemEnvironmentPropertySource that also tracks Origin.- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.core.env.PropertySourceorg.springframework.core.env.PropertySource.StubPropertySource
- 
Field SummaryFields inherited from class org.springframework.core.env.PropertySourcelogger, name, source
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontainsProperty(String name) Return the origin of the given key ornullif the origin cannot be determined.Return the implicit prefix that is applied when performing a lookup ornullif no prefix is used.getProperty(String name) booleanReturntrueif this lookup is immutable and has contents that will never change.Methods inherited from class org.springframework.core.env.SystemEnvironmentPropertySourceresolvePropertyNameMethods inherited from class org.springframework.core.env.MapPropertySourcegetPropertyNamesMethods inherited from class org.springframework.core.env.PropertySourceequals, getName, getSource, hashCode, named, toString
- 
Method Details- 
containsProperty- Overrides:
- containsPropertyin class- org.springframework.core.env.SystemEnvironmentPropertySource
 
- 
getProperty- Overrides:
- getPropertyin class- org.springframework.core.env.SystemEnvironmentPropertySource
 
- 
getOriginDescription copied from interface:OriginLookupReturn the origin of the given key ornullif the origin cannot be determined.- Specified by:
- getOriginin interface- OriginLookup<String>
- Parameters:
- key- the key to lookup
- Returns:
- the origin of the key or null
 
- 
getPrefixDescription copied from interface:OriginLookupReturn the implicit prefix that is applied when performing a lookup ornullif no prefix is used. Prefixes can be used to disambiguate keys that would otherwise clash. For example, if multiple applications are running on the same machine a different prefix can be set on each application to ensure that different environment variables are used.- Specified by:
- getPrefixin interface- OriginLookup<String>
- Returns:
- the prefix applied by the lookup class 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
 
 
-