adoroszlai opened a new pull request #1106:
URL: https://github.com/apache/hadoop-ozone/pull/1106


   ## What changes were proposed in this pull request?
   
   Allow setting `Configuration` from strongly-typed config objects (ie. ones 
annotated with `@Config`).  This is the opposite direction of existing 
`ConfigurationSource.getObject()`.
   
   One caveat is that the config object needs to be created via `getObject()` 
for default values from annotations to be properly set.
   
   https://issues.apache.org/jira/browse/HDDS-2413
   
   ## How was this patch tested?
   
   Added unit test.  Also updated a single part of "real" code where this 
change makes string constants unnecessary (`DUFactory.Conf` and 
`TestDUFactory`).
   
   https://github.com/adoroszlai/hadoop-ozone/runs/795413474


----------------------------------------------------------------
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]

Reply via email to