Class SysEnvRefPropertySource


  • public class SysEnvRefPropertySource
    extends org.springframework.core.env.SystemEnvironmentPropertySource
    Customizes SystemEnvironmentPropertySource by removing `$` sing from begging of property token and wraps it with `_`.

    Example: foo.$bar -> foo._bar_ foo.$bar.gaz -> foo._bar_.gaz

    Must be registered instead of default SystemEnvironmentPropertySource

    See Also:
    StandardEnvironment
    • 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 Description
      Object getProperty​(String name)  
      • Methods inherited from class org.springframework.core.env.SystemEnvironmentPropertySource

        containsProperty, 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
    • Constructor Detail

      • SysEnvRefPropertySource

        public SysEnvRefPropertySource​(Map<String,​Object> source)
    • Method Detail

      • getProperty

        public Object getProperty​(String name)
        Overrides:
        getProperty in class org.springframework.core.env.SystemEnvironmentPropertySource