[
https://issues.apache.org/jira/browse/AMBARI-4376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mahadev konar updated AMBARI-4376:
----------------------------------
Fix Version/s: 1.5.0
> 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
> Fix For: 1.5.0
>
>
> 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)