Package org.jboss.as.controller
Class ModuleIdentifierUtil
- java.lang.Object
-
- org.jboss.as.controller.ModuleIdentifierUtil
-
public final class ModuleIdentifierUtil extends Object
Provides utilities related to working with names of JBoss Modules modules.
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterCorrectorMODULE_NAME_CORRECTORAParameterCorrectorthatcanonicalizesvalues that are meant to represent JBoss Modules module names.
-
Constructor Summary
Constructors Constructor Description ModuleIdentifierUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcanonicalModuleIdentifier(String moduleSpec)Provides the canonical string representation of a module identifier from a string of the formname[:slot].static StringcanonicalModuleIdentifier(String name, String slot)Provides the canonical string representation of a module identifier from a base module name and an optional slot.
-
-
-
Field Detail
-
MODULE_NAME_CORRECTOR
public static final ParameterCorrector MODULE_NAME_CORRECTOR
AParameterCorrectorthatcanonicalizesvalues that are meant to represent JBoss Modules module names.
-
-
Method Detail
-
canonicalModuleIdentifier
public static String canonicalModuleIdentifier(String moduleSpec)
Provides the canonical string representation of a module identifier from a string of the formname[:slot]. The canonical representation will not include slot information if the slot ismain.- Parameters:
moduleSpec- a module name specification in the formname[:slot]. Cannot benull- Returns:
- the canonical representation. Will not return @{code null}
-
canonicalModuleIdentifier
public static String canonicalModuleIdentifier(String name, String slot)
Provides the canonical string representation of a module identifier from a base module name and an optional slot. The canonical representation will not include slot information if the slot ismain.- Parameters:
name- the base module name. Cannot benullslot- the module slot. May be @{code null}- Returns:
- the canonical representation. Will not return @{code null}
-
-