org.springframework.boot.env

Class SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource

  • java.lang.Object
    • org.springframework.core.env.PropertySource<T>
      • org.springframework.core.env.EnumerablePropertySource<java.util.Map<java.lang.String,java.lang.Object>>
        • org.springframework.core.env.MapPropertySource
          • org.springframework.core.env.SystemEnvironmentPropertySource
            • org.springframework.boot.env.SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource

        org.springframework.core.env.PropertySource.StubPropertySource
    • Field Summary

      • Fields inherited from class org.springframework.core.env.PropertySource

        logger, name, source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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) 
      • Methods inherited from class org.springframework.core.env.SystemEnvironmentPropertySource

        isSecurityManagerPresent, resolvePropertyName
      • Methods inherited from class org.springframework.core.env.MapPropertySource

        getPropertyNames
      • Methods inherited from class org.springframework.core.env.PropertySource

        equals, getName, getSource, hashCode, named, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • containsProperty

        public boolean containsProperty(java.lang.String name)
        Overrides:
        containsProperty in class org.springframework.core.env.SystemEnvironmentPropertySource
      • getProperty

        public java.lang.Object getProperty(java.lang.String name)
        Overrides:
        getProperty in class org.springframework.core.env.SystemEnvironmentPropertySource
      • getOrigin

        public Origin getOrigin(java.lang.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<java.lang.String>
        Parameters:
        key - the key to lookup
        Returns:
        the origin of the key or null
      • getPrefix

        public java.lang.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<java.lang.String>
        Returns:
        the prefix applied by the lookup class or null.