elek opened a new pull request #1663: URL: https://github.com/apache/ozone/pull/1663
## What changes were proposed in this pull request? hadoop-hdds/config project provides a light-weight annotation based configuration interface. It supports to create an object with injection: ``` ReplicationConfig replicationConfig := ozoneConfig.getObject(replicationConfig); ``` However, it seems to be hard to inject configuration to the service itself as usually we inject a lot of other dependencies to the constructor, not just the configuration. One possible solution is using a Guice module. Guice is already used by recon, and this patch adds some optional modules to inject configuration variables to any service / instance if required. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-4494 ## How was this patch tested? New utility is not yet used by production code, but covered with a new unit test. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
