Class SystemEnvironmentVariables


  • public class SystemEnvironmentVariables
    extends Object
    Gets a system environment variable. First it checks if the variable is set as Java system property and if it is the case, it returns the configured value. If not then it checks if it is defined as environment variable, and if not it returns the default value.
    • Constructor Detail

      • SystemEnvironmentVariables

        public SystemEnvironmentVariables()
    • Method Detail

      • getPropertyVariableOrEnvironment

        public static final String getPropertyVariableOrEnvironment​(String property,
                                                                    String def)