ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahadev konar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-4376) Convert Resource.Type enum to class
Date Wed, 22 Jan 2014 04:47:25 GMT

     [ 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)

Mime
View raw message