ModuleFinder
public final class ResourceLoaderModuleFinder extends 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,
String modulesDirectory) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
ModuleSpec |
findModule(String name,
ModuleLoader delegateLoader) |
Find a module specification for the given name.
|
findModule
public 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
ModuleFinder
ModuleFinder.findModule(ModuleIdentifier, ModuleLoader)
method.findModule
in interface ModuleFinder
name
- the module namedelegateLoader
- the module loader from which dependencies should be resolvednull
if no specification is found for this identifierModuleLoadException
Copyright © 2018 JBoss by Red Hat. All rights reserved.