Class ModuleIdentifierUtil


  • public final class ModuleIdentifierUtil
    extends Object
    Provides utilities related to working with names of JBoss Modules modules.
    • Constructor Detail

      • ModuleIdentifierUtil

        public ModuleIdentifierUtil()
    • Method Detail

      • canonicalModuleIdentifier

        public static String canonicalModuleIdentifier​(String moduleSpec)
        Provides the canonical string representation of a module identifier from a string of the form name[:slot]. The canonical representation will not include slot information if the slot is main.
        Parameters:
        moduleSpec - a module name specification in the form name[:slot]. Cannot be null
        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 is main.
        Parameters:
        name - the base module name. Cannot be null
        slot - the module slot. May be @{code null}
        Returns:
        the canonical representation. Will not return @{code null}