Package com.networknt.config
Class ConfigInjection
- java.lang.Object
-
- com.networknt.config.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 Summary
Constructors Constructor Description ConfigInjection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectgetInjectValue(String string)static booleanisExclusionConfigFile(String configName)
-