Class JsonBasedCconfigRetriever
java.lang.Object
org.chenile.cconfig.sdk.impl.JsonBasedCconfigRetriever
- All Implemented Interfaces:
Command<ConfigContext>
This would typically be the first ConfigRetriever that would be called in the series.
This initialises all the keys for the module.
It will be subsequently enhanced by the other retrievers.
This initialises all the keys for the module.
It will be subsequently enhanced by the other retrievers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final org.slf4j.Loggerprivate final ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ConfigContext configContext) getJsonMapForModuleFromClassPath(ConfigContext configContext) private StringreadModuleAsString(ConfigContext configContext)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
objectMapper
-
configPath
-
-
Constructor Details
-
JsonBasedCconfigRetriever
-
-
Method Details
-
execute
- Specified by:
executein interfaceCommand<ConfigContext>
-
getJsonMapForModuleFromClassPath
-
readModuleAsString
-