public final class ResourceLoaderModuleFinder extends Object implements ModuleFinder
modules directory of a single JAR or JAR-like
root.| Constructor and Description |
|---|
ResourceLoaderModuleFinder(ResourceLoader resourceLoader)
Construct a new instance.
|
ResourceLoaderModuleFinder(ResourceLoader resourceLoader,
String modulesDirectory)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ModuleSpec |
findModule(String name,
ModuleLoader delegateLoader)
Find a module specification for the given name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindModulepublic ResourceLoaderModuleFinder(ResourceLoader resourceLoader, 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(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 © 2017 JBoss by Red Hat. All rights reserved.