[ 
https://issues.apache.org/jira/browse/HDFS-14577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866001#comment-16866001
 ] 

CR Hota commented on HDFS-14577:
--------------------------------

[~elgoiri] Thanks for the review.

ReflectionUtils is quite diverged from FederationUtil. One might need conf to 
create the object itself. Yes setConf is present but that is after the object 
creation. Also this is something that can be done by the developer itself, 
after the instance reference is given back. 

The use cases are to create FairnessManager and also SecurityManager which need 
just the conf object and standardize pluggable object creation.

May be at some point we may look to deprecate FederationUtil and enhance 
ReflectionUtil to help create all objects (nnresolver, statestore resolver, 
fairness, security).

 

> RBF: FederationUtil#newInstance should allow constructor without context
> ------------------------------------------------------------------------
>
>                 Key: HDFS-14577
>                 URL: https://issues.apache.org/jira/browse/HDFS-14577
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: CR Hota
>            Assignee: CR Hota
>            Priority: Major
>         Attachments: HDFS-14577-HDFS-13891.001.patch
>
>
> FederationUtil#newInstance either works for empty constructor or constructor 
> with conf and context class. More use cases are coming along where conf is 
> the only param needed to construct objects.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to