Class ModuleSpec

java.lang.Object
org.jboss.modules.ModuleSpec
Direct Known Subclasses:
AliasModuleSpec, ConcreteModuleSpec

public abstract class ModuleSpec extends Object
A Module specification which is used by a ModuleLoader to define new modules.
Author:
David M. Lloyd
  • Method Details

    • build

      @Deprecated public static ModuleSpec.Builder build(ModuleIdentifier moduleIdentifier)
      Deprecated.
      Use build(String) instead.
      Get a builder for a new module specification.
      Parameters:
      moduleIdentifier - the module identifier
      Returns:
      the builder
    • build

      public static ModuleSpec.Builder build(String name)
      Get a builder for a new module specification.
      Parameters:
      name - the module name
      Returns:
      the builder
    • buildAlias

      @Deprecated public static ModuleSpec.AliasBuilder buildAlias(ModuleIdentifier moduleIdentifier, ModuleIdentifier aliasTarget)
      Deprecated.
      Get a builder for a new module alias specification.
      Parameters:
      moduleIdentifier - the module identifier
      aliasTarget - the alias target identifier
      Returns:
      the builder
    • buildAlias

      public static ModuleSpec.AliasBuilder buildAlias(String name, String aliasName)
      Get a builder for a new module alias specification.
      Parameters:
      name - the module name
      aliasName - the alias target name
      Returns:
      the builder
    • getModuleIdentifier

      @Deprecated public ModuleIdentifier getModuleIdentifier()
      Deprecated.
      Use getName() instead.
      Get the module identifier for the module which is specified by this object.
      Returns:
      the module identifier
    • getName

      public String getName()
      Get the module name for the module which is specified by this object.
      Returns:
      the module name