public class EnvFirstConfigLoadingStrategy
extends com.typesafe.config.DefaultConfigLoadingStrategy
DefaultConfigLoadingStrategy
Environment variables are mangled in the following way after stripping the prefix:
| Env Var | Config |
|---|---|
| _ [1 underscore] | . [dot] |
| __ [2 underscore] | - [dash] |
| ___ [3 underscore] | _ [underscore] |
A variable like: CONFIG_a_b__c___d
is translated to a config key: a.b-c_d
The prefix may be altered by defining the VM property config.env_var_prefix
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
env |
| Constructor and Description |
|---|
EnvFirstConfigLoadingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
com.typesafe.config.Config |
parseApplicationConfig(com.typesafe.config.ConfigParseOptions parseOptions) |
public com.typesafe.config.Config parseApplicationConfig(com.typesafe.config.ConfigParseOptions parseOptions)
parseApplicationConfig in interface com.typesafe.config.ConfigLoadingStrategyparseApplicationConfig in class com.typesafe.config.DefaultConfigLoadingStrategy