You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2014/01/21 23:04:22 UTC

[jira] [Created] (AMBARI-4376) Convert Resource.Type enum to class

Tom Beerbower created AMBARI-4376:
-------------------------------------

             Summary: 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)