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

Siddharth Wagle commented on AMBARI-4376:
-----------------------------------------

+1 LGTM

> Convert Resource.Type enum to class
> -----------------------------------
>
>                 Key: AMBARI-4376
>                 URL: https://issues.apache.org/jira/browse/AMBARI-4376
>             Project: Ambari
>          Issue Type: Improvement
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>
> The use of an enum for Resource.Type does not allow for on the fly additions 
> of new resource types for the API.  The new Ambari Views needs to be able to 
> extend the API through the addition of new resource types.
> Converting from an enum to a class is pretty straightforward but has some 
> limitations.  For example, an enum can be used in a switch statement but a 
> class can't.  We need to provide a way to allow for this conversion with 
> minimal code disruption. 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to