ModuleFinderpublic final class ResourceLoaderModuleFinder extends java.lang.Object implements ModuleFinder
modules directory of a single JAR or JAR-like
root.| Constructor | Description |
|---|---|
ResourceLoaderModuleFinder(ResourceLoader resourceLoader) |
Construct a new instance.
|
ResourceLoaderModuleFinder(ResourceLoader resourceLoader,
java.lang.String modulesDirectory) |
Construct a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
ModuleSpec |
findModule(java.lang.String name,
ModuleLoader delegateLoader) |
Find a module specification for the given name.
|
findModulepublic ResourceLoaderModuleFinder(ResourceLoader resourceLoader, java.lang.String modulesDirectory)
ResourceLoader.createSubloader(String, String)
operation if <resource-root> elements are to be supported in module.xml files found within
the loader.resourceLoader - the base resource loader to use (must not be null)modulesDirectory - the modules directory to use (must not be null)public ResourceLoaderModuleFinder(ResourceLoader resourceLoader)
ResourceLoader.createSubloader(String, String)
operation if <resource-root> elements are to be supported in module.xml files found within
the loader.resourceLoader - the base resource loader to use (must not be null)public ModuleSpec findModule(java.lang.String name, ModuleLoader delegateLoader) throws ModuleLoadException
ModuleFinderModuleFinder.findModule(ModuleIdentifier, ModuleLoader) method.findModule in interface ModuleFindername - the module namedelegateLoader - the module loader from which dependencies should be resolvednull if no specification is found for this identifierModuleLoadExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.