Class EnvironmentValueProvider

  • All Implemented Interfaces:
    ConfigurationValueProvider

    public class EnvironmentValueProvider
    extends AbstractMapConfigurationValueProvider
    Searches for the configuration values in the system environment variables.

    To handle shells that only allow underscores, it checks the following variations of a property:

    • foo.bar - the original name
    • foo_bar - with underscores for periods (if any)
    • FOO.BAR - original, with upper case
    • FOO_BAR - with underscores and upper case
    Any hyphen variant of the above would work as well, or even mix dot/hyphen variants.