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