Class ModuleDependencySpec

java.lang.Object
org.jboss.modules.DependencySpec
org.jboss.modules.ModuleDependencySpec

public final class ModuleDependencySpec extends DependencySpec
A dependency specification on a module.
  • Field Details

    • JAVA_BASE

      public static final ModuleDependencySpec JAVA_BASE
      A simple dependency on the java.base module.
    • JAVA_SE

      public static final ModuleDependencySpec JAVA_SE
      A simple dependency on the java.se module.
  • Method Details

    • getModuleLoader

      public ModuleLoader getModuleLoader()
      Get the module loader of this dependency, or null if the defined module's loader is to be used.
      Returns:
      the module loader
    • getIdentifier

      @Deprecated public ModuleIdentifier getIdentifier()
      Deprecated.
      Use #getName() instead.
      Get the module identifier of the dependency.
      Returns:
      the module identifier
    • getName

      public String getName()
      Get the module name of the dependency.
      Returns:
      the module name
    • isOptional

      public boolean isOptional()
      Determine whether this dependency is optional.
      Returns:
      true if the dependency is optional, false if it is required
    • toString

      public String toString()
      Overrides:
      toString in class Object