Class JsonBasedCconfigRetriever
java.lang.Object
org.chenile.cconfig.sdk.impl.JsonBasedCconfigRetriever
- All Implemented Interfaces:
CconfigRetriever
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 CconfigRetrieverFactoryprivate final Stringprivate static final org.slf4j.Loggerprivate final ObjectMapper -
Constructor Summary
ConstructorsConstructorDescriptionJsonBasedCconfigRetriever(String configPath, CconfigRetrieverFactory cconfigRetrieverFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaugmentKeys(ConfigContext configContext) intorder()private StringreadModuleAsString(String module) void
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
objectMapper
-
configPath
-
cconfigRetrieverFactory
-
-
Constructor Details
-
JsonBasedCconfigRetriever
public JsonBasedCconfigRetriever(String configPath, CconfigRetrieverFactory cconfigRetrieverFactory)
-
-
Method Details
-
registerWithFactory
-
augmentKeys
- Specified by:
augmentKeysin interfaceCconfigRetriever
-
order
public int order()- Specified by:
orderin interfaceCconfigRetriever
-
getJsonMapForModuleFromClassPath
-
readModuleAsString
-