Class JDKModuleFinder

java.lang.Object
org.jboss.modules.JDKModuleFinder
All Implemented Interfaces:
IterableModuleFinder, ModuleFinder

public final class JDKModuleFinder extends Object implements IterableModuleFinder
  • Method Details

    • getInstance

      public static JDKModuleFinder getInstance()
    • findModule

      public ModuleSpec findModule(String name, ModuleLoader delegateLoader)
      Description copied from interface: ModuleFinder
      Find a module specification for the given name. The default implementation delegates to the legacy ModuleFinder.findModule(ModuleIdentifier, ModuleLoader) method.
      Specified by:
      findModule in interface ModuleFinder
      Parameters:
      name - the module name
      delegateLoader - the module loader from which dependencies should be resolved
      Returns:
      the module specification, or null if no specification is found for this identifier
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • iterateModules

      public Iterator<String> iterateModules(String baseName, boolean recursive)
      Description copied from interface: IterableModuleFinder
      Iterate the modules which can be located via this module finder.
      Specified by:
      iterateModules in interface IterableModuleFinder
      Parameters:
      baseName - the identifier to start with, or null to iterate all modules; ignored if this module loader does not have a concept of nested modules
      recursive - true to find recursively nested modules, false to only find immediately nested modules; ignored if this module finder does not have a concept of nested modules
      Returns:
      an iterator for the modules in this module finder