IterableModuleFinder
, ModuleFinder
public final class JDKModuleFinder extends java.lang.Object implements IterableModuleFinder
Modifier and Type | Method | Description |
---|---|---|
ModuleSpec |
findModule(java.lang.String name,
ModuleLoader delegateLoader) |
Find a module specification for the given name.
|
static JDKModuleFinder |
getInstance() |
|
java.util.Iterator<java.lang.String> |
iterateModules(java.lang.String baseName,
boolean recursive) |
Iterate the modules which can be located via this module finder.
|
java.lang.String |
toString() |
iterateModules
findModule
public static JDKModuleFinder getInstance()
public ModuleSpec findModule(java.lang.String name, ModuleLoader delegateLoader)
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 identifierpublic java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<java.lang.String> iterateModules(java.lang.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.