protected static class SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource extends SystemEnvironmentPropertySource implements OriginLookup<String>
SystemEnvironmentPropertySource
that also tracks Origin
.PropertySource.StubPropertySource
logger, name, source
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String name) |
Origin |
getOrigin(String key)
Return the origin of the given key or
null if the origin cannot be
determined. |
String |
getPrefix()
Return the implicit prefix that is applied when performing a lookup or
null
if no prefix is used. |
Object |
getProperty(String name) |
isSecurityManagerPresent, resolvePropertyName
getPropertyNames
equals, getName, getSource, hashCode, named, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOrigin, isImmutable
public boolean containsProperty(String name)
containsProperty
in class SystemEnvironmentPropertySource
public Object getProperty(String name)
getProperty
in class SystemEnvironmentPropertySource
public Origin getOrigin(String key)
OriginLookup
null
if the origin cannot be
determined.getOrigin
in interface OriginLookup<String>
key
- the key to lookupnull
public String getPrefix()
OriginLookup
null
if 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.getPrefix
in interface OriginLookup<String>
null
.