Interface ModuleFinder
- All Known Subinterfaces:
IterableModuleFinder
- All Known Implementing Classes:
JarModuleFinder, LocalModuleFinder
public interface ModuleFinder
A locator for module definitions.
-
Method Summary
Modifier and TypeMethodDescriptionfindModule(ModuleIdentifier identifier, ModuleLoader delegateLoader) Find a module specification for the given identifier.
-
Method Details
-
findModule
ModuleSpec findModule(ModuleIdentifier identifier, ModuleLoader delegateLoader) throws ModuleLoadException Find a module specification for the given identifier.- Parameters:
identifier- the module identifierdelegateLoader- the module loader from which dependencies should be resolved- Returns:
- the module specification, or
nullif no specification is found for this identifier - Throws:
ModuleLoadException
-