IterableModuleFinder
, ModuleFinder
public final class JDKModuleFinder extends Object implements IterableModuleFinder
org.jboss.modules
.Modifier and Type | Method | Description |
---|---|---|
ModuleSpec |
findModule(String name,
ModuleLoader delegateLoader) |
Find a module specification for the given name.
|
static JDKModuleFinder |
getInstance() |
Get the singleton instance.
|
Iterator<String> |
iterateModules(String baseName,
boolean recursive) |
Iterate the modules which can be located via this module finder.
|
String |
toString() |
iterateModules
findModule
public static JDKModuleFinder getInstance()
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
public Iterator<String> iterateModules(String baseName, boolean recursive)
IterableModuleFinder
iterateModules
in interface IterableModuleFinder
baseName
- the identifier to start with, or null
to iterate all modules; ignored if this module
loader does not have a concept of nested modulesrecursive
- true
to find recursively nested modules, false
to only find immediately nested
modules; ignored if this module finder does not have a concept of nested modulesCopyright © 2022 JBoss by Red Hat. All rights reserved.