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

    • moduleLoader

      private final ModuleLoader moduleLoader
    • identifier

      private final ModuleIdentifier identifier
    • optional

      private final boolean optional
  • Constructor Details

  • Method Details

    • getDependency

      Dependency getDependency(Module module)
      Specified by:
      getDependency in class DependencySpec
    • 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

      public ModuleIdentifier getIdentifier()
      Get the module identifier of the dependency.
      Returns:
      the module identifier
    • 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