Class SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource

All Implemented Interfaces:
OriginLookup<String>
Enclosing class:
SystemEnvironmentPropertySourceEnvironmentPostProcessor

protected static class SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource extends SystemEnvironmentPropertySource implements OriginLookup<String>
  • Method Details

    • containsProperty

      public boolean containsProperty(String name)
      Overrides:
      containsProperty in class SystemEnvironmentPropertySource
    • getProperty

      public Object getProperty(String name)
      Overrides:
      getProperty in class SystemEnvironmentPropertySource
    • getOrigin

      public Origin getOrigin(String key)
      Description copied from interface: OriginLookup
      Return the origin of the given key or null if the origin cannot be determined.
      Specified by:
      getOrigin in interface OriginLookup<String>
      Parameters:
      key - the key to lookup
      Returns:
      the origin of the key or null
    • getPrefix

      public String getPrefix()
      Description copied from interface: OriginLookup
      Return the implicit prefix that is applied when performing a lookup or 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.
      Specified by:
      getPrefix in interface OriginLookup<String>
      Returns:
      the prefix applied by the lookup class or null.