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

      public static ModuleSpec.Builder build(String name)
      Get a builder for a new module specification.
      Parameters:
      name - the module name
      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
    • getName

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