Class ConfigUtils


  • public class ConfigUtils
    extends Object
    • Method Detail

      • applyConfigWithEnvVariables

        public static <T extends BaseJsonConfig> T applyConfigWithEnvVariables​(T config)
        Apply environment variables to any given BaseJsonConfig.
        Returns:
        Config with environment variable applied.
      • applyConfigWithEnvVariables

        public static <T extends BaseJsonConfig> T applyConfigWithEnvVariables​(Map<String,​String> environment,
                                                                               T config)
        Apply environment variables to any given BaseJsonConfig.
        Returns:
        Config with environment variable applied.