Class EnvBasedCconfigRetriever
java.lang.Object
org.chenile.cconfig.sdk.impl.EnvBasedCconfigRetriever
- All Implemented Interfaces:
Command<ConfigContext>
This considers all the module keys and selectively enhances them if there is an environmental override.
Note that environment will not add any new config keys. It will only enhance the existing keys.
Also, this completely replaces the existing value for the key with a new value rather than selective
manipulation of the value of the key.
You can provide environment level overrides at a customAttribute level by prefixing the environment key with the customAttribute name. But it is not possible to provide a trajectory level override at the environment. This is not a bad practice since it cannot accommodate for runtime changes.
You can provide environment level overrides at a customAttribute level by prefixing the environment key with the customAttribute name. But it is not possible to provide a trajectory level override at the environment. This is not a bad practice since it cannot accommodate for runtime changes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
environment
-
-
Constructor Details
-
EnvBasedCconfigRetriever
-
-
Method Details
-
execute
- Specified by:
executein interfaceCommand<ConfigContext>
-
envKey
-
CHENILE