org.rhq.modules.plugins.jbossas7
Enum JBossProductType
java.lang.Object
java.lang.Enum<JBossProductType>
org.rhq.modules.plugins.jbossas7.JBossProductType
- All Implemented Interfaces:
- Serializable, Comparable<JBossProductType>
public enum JBossProductType
- extends Enum<JBossProductType>
Metadata describing a product based on JBoss AS 7.x.
- Author:
- Ian Springer
AS
public static final JBossProductType AS
EAP
public static final JBossProductType EAP
JDG
public static final JBossProductType JDG
EPP
public static final JBossProductType EPP
SOA
public static final JBossProductType SOA
SHORT_NAME
public final String SHORT_NAME
NAME
public final String NAME
FULL_NAME
public final String FULL_NAME
PRODUCT_NAME
public final String PRODUCT_NAME
- The value the server returns for the "product-name" attribute of the root resource.
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(File homeDir)
- Determines the product type of a JBoss product installation.
- Parameters:
homeDir - the JBoss product installation directory (e.g. /opt/jboss-as-7.1.1.Final)
- Returns:
- the product type
getValueByProductName
public static JBossProductType getValueByProductName(String productName)
toString
public String toString()
- Overrides:
toString in class Enum<JBossProductType>
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.