Class CconfigConfiguration
java.lang.Object
org.chenile.cconfig.configuration.CconfigConfiguration
Initialize all the Chenile config related services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringChenile Config will scan this path for all config JSONs.Pass all the modules whose values are needed in this instance of the config.Pass all the modules whose values are needed in this instance of the config. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_cconfigQueryService_(CconfigClient client) (package private) CconfigHealthCheckerdbBasedCconfigRetriever(CconfigRetrieverFactory cconfigRetrieverFactory) serverCconfigClient(CconfigRetrieverFactory cconfigRetrieverFactory)
-
Field Details
-
configPath
Chenile Config will scan this path for all config JSONs. All configs are expected to be of the form {module}.{key}.
A JSON file module.json file must exist in this path.
It should contain "key" at the root level. See test cases for more info. -
modules
-
customAttributes
-
-
Constructor Details
-
CconfigConfiguration
public CconfigConfiguration()
-
-
Method Details
-
dbBasedCconfigRetriever
@Bean public CconfigRetriever dbBasedCconfigRetriever(@Autowired CconfigRetrieverFactory cconfigRetrieverFactory) -
serverCconfigClient
@Bean public CconfigClient serverCconfigClient(@Autowired CconfigRetrieverFactory cconfigRetrieverFactory) -
_cconfigQueryService_
@Bean public CconfigQueryService _cconfigQueryService_(@Autowired @Qualifier("serverCconfigClient") CconfigClient client) -
_cconfigService_
-
cconfigHealthChecker
-