public enum JBossProductType extends Enum<JBossProductType>
| Modifier and Type | Field and Description |
|---|---|
String |
DEFAULT_CONFIG_NAME |
String |
DESCRIPTION |
String |
NAME |
| Modifier and Type | Method and Description |
|---|---|
static JBossProductType |
determineJBossProductType(Attributes attributes)
Determines the product type (AS or EAP or a layered product like BRMS) 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.
|
public static final JBossProductType AS
public static final JBossProductType EAP
public static final JBossProductType EWP
public static final JBossProductType SOA
public static final JBossProductType BRMS
public static final JBossProductType EPP
public final String NAME
public final String DESCRIPTION
public final String DEFAULT_CONFIG_NAME
public static JBossProductType[] values()
for (JBossProductType c : JBossProductType.values()) System.out.println(c);
public static JBossProductType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static JBossProductType determineJBossProductType(Attributes attributes)
Note that this method is NOT always correct about the actual version of the product, because certain version of certain products don't advertise the correct product/version in the manifest.
Use JBossInstallationInfo for a more thorough detection of the type and version of a product.
attributes - the attributes from a manifest file (typically run.jar or jboss-j2ee.jar)public String toString()
toString in class Enum<JBossProductType>Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.