ModuleFinder
public class FileSystemClassPathModuleFinder extends Object implements ModuleFinder
MANIFEST
headers supported by JBoss Modules. The JAR files or modules may in turn contain
nested module repositories inside of their modules
subdirectories. Modules in nested repositories are only visible
to the module that contains them.Constructor | Description |
---|---|
FileSystemClassPathModuleFinder(Supplier<ModuleLoader> baseModuleLoaderSupplier,
Supplier<ModuleLoader> extensionModuleLoaderSupplier) |
Construct a new instance.
|
FileSystemClassPathModuleFinder(ModuleLoader baseModuleLoader) |
Construct a new instance.
|
FileSystemClassPathModuleFinder(ModuleLoader baseModuleLoader,
Supplier<ModuleLoader> extensionModuleLoaderSupplier) |
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 FileSystemClassPathModuleFinder(ModuleLoader baseModuleLoader)
baseModuleLoader
- the module loader to use to load module dependencies from (must not be null
)public FileSystemClassPathModuleFinder(ModuleLoader baseModuleLoader, Supplier<ModuleLoader> extensionModuleLoaderSupplier)
baseModuleLoader
- the module loader to use to load module dependencies from (must not be null
)extensionModuleLoaderSupplier
- a supplier which yields a module loader for loading extensions (must not be null
)public FileSystemClassPathModuleFinder(Supplier<ModuleLoader> baseModuleLoaderSupplier, Supplier<ModuleLoader> extensionModuleLoaderSupplier)
baseModuleLoaderSupplier
- the supplier to supply a module loader for loading dependencies (must not be null
)extensionModuleLoaderSupplier
- a supplier which yields a module loader for loading extensions (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 © 2022 JBoss by Red Hat. All rights reserved.