org.rhq.plugins.jbossas5.helper
Enum JBossProductType

java.lang.Object
  extended by java.lang.Enum<JBossProductType>
      extended by org.rhq.plugins.jbossas5.helper.JBossProductType
All Implemented Interfaces:
Serializable, Comparable<JBossProductType>

public enum JBossProductType
extends Enum<JBossProductType>

The product type of a JBoss 5.x/6.x application server installation - AS, EAP, EWP, or SOA.

Author:
Jessica Sant, Ian Springer

Enum Constant Summary
AS
           
EAP
           
EWP
           
SOA
           
 
Field Summary
 String DEFAULT_CONFIG_NAME
           
 String DESCRIPTION
           
 String NAME
           
 
Method Summary
static JBossProductType determineJBossProductType(Attributes attributes)
          Determines the product type (AS, EAP, EWP, or SOA) based on the Implementation-Title MANIFEST.MF attribute.
 String toString()
           
static JBossProductType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JBossProductType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AS

public static final JBossProductType AS

EAP

public static final JBossProductType EAP

EWP

public static final JBossProductType EWP

SOA

public static final JBossProductType SOA
Field Detail

NAME

public final String NAME

DESCRIPTION

public final String DESCRIPTION

DEFAULT_CONFIG_NAME

public final String DEFAULT_CONFIG_NAME
Method Detail

values

public static JBossProductType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JBossProductType c : JBossProductType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JBossProductType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

determineJBossProductType

public static JBossProductType determineJBossProductType(Attributes attributes)
Determines the product type (AS, EAP, EWP, or SOA) based on the Implementation-Title MANIFEST.MF attribute.

Parameters:
attributes - the attributes from a manifest file (typically run.jar or jboss-j2ee.jar)
Returns:
the product type (AS, EAP, EWP, or SOA)

toString

public String toString()
Overrides:
toString in class Enum<JBossProductType>


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.