Class ConfigInjection


  • public class ConfigInjection
    extends Object
    This class has a public method called getInjectValue which is used to generate the values which need to be injected from environment variables or a specific file called "values.yaml".

    Three injection order defined as following and default mode is [2]: [0] Inject from "values.yaml" only. [1] Inject from system environment first, then overwrite by "values.yaml" if exist. [2] Inject from "values.yaml" first, then overwrite with the values in the system environment. This parameter can be set through setting system property "injection_order" in commend line

    Created by jiachen on 2019-01-08.

    • Constructor Detail

      • ConfigInjection

        public ConfigInjection()
    • Method Detail

      • getInjectValue

        public static Object getInjectValue​(String string)
      • isExclusionConfigFile

        public static boolean isExclusionConfigFile​(String configName)