Package org.jboss.modules
Interface ModuleFinder
-
- All Known Subinterfaces:
IterableModuleFinder
- All Known Implementing Classes:
FileSystemClassPathModuleFinder
,JarModuleFinder
,JDKModuleFinder
,LocalModuleFinder
,ResourceLoaderModuleFinder
public interface ModuleFinder
A locator for module definitions.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ModuleSpec
findModule(java.lang.String name, ModuleLoader delegateLoader)
Find a module specification for the given name.default ModuleSpec
findModule(ModuleIdentifier moduleIdentifier, ModuleLoader delegateLoader)
Find a module specification for the given identifier.
-
-
-
Method Detail
-
findModule
default ModuleSpec findModule(java.lang.String name, ModuleLoader delegateLoader) throws ModuleLoadException
Find a module specification for the given name. The default implementation delegates to the legacyfindModule(ModuleIdentifier, ModuleLoader)
method.- Parameters:
name
- the module namedelegateLoader
- 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
-
findModule
default ModuleSpec findModule(ModuleIdentifier moduleIdentifier, ModuleLoader delegateLoader) throws ModuleLoadException
Find a module specification for the given identifier. The default implementation returnsnull
. This method will never be called by the module system unlessfindModule(String, ModuleLoader)
is left unimplemented.- Parameters:
moduleIdentifier
- the module identifierdelegateLoader
- 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
-
-