IterableModuleFinder, ModuleFinderpublic 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() |
iterateModulesfindModulepublic static JDKModuleFinder getInstance()
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 identifierModuleLoadExceptionpublic Iterator<String> iterateModules(String baseName, boolean recursive)
IterableModuleFinderiterateModules in interface IterableModuleFinderbaseName - 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 © 2018 JBoss by Red Hat. All rights reserved.