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, resolvePropertyNameequals, getName, getSource, hashCode, named, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOrigin, isImmutablepublic boolean containsProperty(java.lang.String name)
containsProperty in class org.springframework.core.env.SystemEnvironmentPropertySourcepublic java.lang.Object getProperty(java.lang.String name)
getProperty in class org.springframework.core.env.SystemEnvironmentPropertySourcepublic Origin getOrigin(java.lang.String key)
OriginLookupnull if the origin cannot be
determined.getOrigin in interface OriginLookup<java.lang.String>key - the key to lookupnullpublic java.lang.String getPrefix()
OriginLookupnull
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.