public interface ModuleFinder
| Modifier and Type | Method and Description |
|---|---|
default ModuleSpec |
findModule(ModuleIdentifier moduleIdentifier,
ModuleLoader delegateLoader)
Find a module specification for the given identifier.
|
default ModuleSpec |
findModule(String name,
ModuleLoader delegateLoader)
Find a module specification for the given name.
|
default ModuleSpec findModule(String name, ModuleLoader delegateLoader) throws ModuleLoadException
findModule(ModuleIdentifier, ModuleLoader) method.name - the module namedelegateLoader - the module loader from which dependencies should be resolvednull if no specification is found for this identifierModuleLoadExceptiondefault ModuleSpec findModule(ModuleIdentifier moduleIdentifier, ModuleLoader delegateLoader) throws ModuleLoadException
null. This
method will never be called by the module system unless findModule(String, ModuleLoader) is left
unimplemented.moduleIdentifier - the module identifierdelegateLoader - the module loader from which dependencies should be resolvednull if no specification is found for this identifierModuleLoadExceptionCopyright © 2017. All rights reserved.