org.rhq.plugins.jbossas.helper
Enum JBossProductType
java.lang.Object
java.lang.Enum<JBossProductType>
org.rhq.plugins.jbossas.helper.JBossProductType
- All Implemented Interfaces:
- Serializable, Comparable<JBossProductType>
public enum JBossProductType
- extends Enum<JBossProductType>
The product type of a JBoss installation - AS, EAP, or SOA.
- Author:
- Jessica Sant, Ian Springer
AS
public static final JBossProductType AS
EAP
public static final JBossProductType EAP
SOA
public static final JBossProductType SOA
NAME
public final String NAME
DESCRIPTION
public final String DESCRIPTION
DEFAULT_CONFIG_NAME
public final String DEFAULT_CONFIG_NAME
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 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 String toString()
- Overrides:
toString in class Enum<JBossProductType>
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.