Package org.jboss.as.version
Class ProductConfig
- java.lang.Object
-
- org.jboss.as.version.ProductConfig
-
- All Implemented Interfaces:
Serializable
public class ProductConfig extends Object implements Serializable
Common location to manage the AS based product name and version.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProductConfig(String productName, String productVersion, String consoleSlot)Solely for use in unit testing
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProductConfigfromFilesystemSlot(org.jboss.modules.ModuleLoader loader, String home, Map<?,?> providedProperties)static ProductConfigfromKnownSlot(String slot, org.jboss.modules.ModuleLoader loader, Map<?,?> providedProperties)StringgetConsoleSlot()StabilitygetDefaultStability()Returns the presumed stability level of this product.StringgetPrettyVersionString()static StringgetPrettyVersionString(String name, String version1, String version2)StringgetProductName()StringgetProductVersion()Set<Stability>getStabilitySet()Returns the set of permissible stability levels for this product.booleanisProduct()StringresolveName()StringresolveVersion()
-
-
-
Method Detail
-
fromFilesystemSlot
public static ProductConfig fromFilesystemSlot(org.jboss.modules.ModuleLoader loader, String home, Map<?,?> providedProperties)
-
fromKnownSlot
public static ProductConfig fromKnownSlot(String slot, org.jboss.modules.ModuleLoader loader, Map<?,?> providedProperties)
-
getProductName
public String getProductName()
-
getProductVersion
public String getProductVersion()
-
isProduct
public boolean isProduct()
-
getConsoleSlot
public String getConsoleSlot()
-
getDefaultStability
public Stability getDefaultStability()
Returns the presumed stability level of this product.- Returns:
- a stability level
-
getStabilitySet
public Set<Stability> getStabilitySet()
Returns the set of permissible stability levels for this product.- Returns:
- a set of stability levels
-
getPrettyVersionString
public String getPrettyVersionString()
-
resolveVersion
public String resolveVersion()
-
resolveName
public String resolveName()
-
-