nishantmonu51 commented on issue #6634: Dependency Injection in DruidModule 
extension
URL: 
https://github.com/apache/incubator-druid/issues/6634#issuecomment-439473049
 
 
   mapping runtime.properties to a Config class can be done by using 
JsonConfigProvider. 
   e.g Refer to how LookupConfig is binded in LookupModule. 
   ```
       JsonConfigProvider.bind(binder, PROPERTY_BASE, LookupConfig.class);
   ```
   Configs can then be specified in runtime.properties like 
<PROPERTY_BASE>.<PROPERTY_NAME> e.g. 
   `druid.lookupsnapshotWorkingDir` for this example.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to