ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <>
Subject [jira] [Created] (AMBARI-4376) Convert Resource.Type enum to class
Date Tue, 21 Jan 2014 22:04:22 GMT
Tom Beerbower created AMBARI-4376:

             Summary: Convert Resource.Type enum to class
                 Key: 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

View raw message