Interface ModuleFinder

All Known Subinterfaces:
IterableModuleFinder
All Known Implementing Classes:
JarModuleFinder, LocalModuleFinder

public interface ModuleFinder
A locator for module definitions.
  • Method Details

    • findModule

      ModuleSpec findModule(ModuleIdentifier identifier, ModuleLoader delegateLoader) throws ModuleLoadException
      Find a module specification for the given identifier.
      Parameters:
      identifier - the module identifier
      delegateLoader - the module loader from which dependencies should be resolved
      Returns:
      the module specification, or null if no specification is found for this identifier
      Throws:
      ModuleLoadException