org.rhq.plugins.jslee.jbossas5.helper
Enum JBossProductType

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

public enum JBossProductType
extends java.lang.Enum<JBossProductType>

The product type of a JBoss application server installation - AS, EAP, or SOA.

Author:
Jessica Sant, Ian Springer

Enum Constant Summary
AS
           
EAP
           
SOA
           
 
Field Summary
 java.lang.String DEFAULT_CONFIG_NAME
           
 java.lang.String DESCRIPTION
           
 java.lang.String NAME
           
 
Method Summary
static JBossProductType determineJBossProductType(java.util.jar.Attributes attributes)
          Determines the product type (AS, EAP or SOA) based on the Implementation-Title MANIFEST.MF attribute.
 java.lang.String toString()
           
static JBossProductType valueOf(java.lang.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

SOA

public static final JBossProductType SOA
Field Detail

NAME

public final java.lang.String NAME

DESCRIPTION

public final java.lang.String DESCRIPTION

DEFAULT_CONFIG_NAME

public final java.lang.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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

determineJBossProductType

public static JBossProductType determineJBossProductType(java.util.jar.Attributes attributes)
Determines the product type (AS, EAP 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:
AS, EAP or SOA

toString

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


Copyright © 2012. All Rights Reserved.