Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6821C108E0 for ; Tue, 21 Jan 2014 22:04:32 +0000 (UTC) Received: (qmail 82599 invoked by uid 500); 21 Jan 2014 22:04:28 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 82486 invoked by uid 500); 21 Jan 2014 22:04:26 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 82194 invoked by uid 99); 21 Jan 2014 22:04:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jan 2014 22:04:22 +0000 Date: Tue, 21 Jan 2014 22:04:22 +0000 (UTC) From: "Tom Beerbower (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-4376) Convert Resource.Type enum to class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)