Package org.jboss.modules
Class JDKModuleFinder
java.lang.Object
org.jboss.modules.JDKModuleFinder
- All Implemented Interfaces:
IterableModuleFinder
,ModuleFinder
-
Method Summary
Modifier and TypeMethodDescriptionfindModule
(String name, ModuleLoader delegateLoader) Find a module specification for the given name.static JDKModuleFinder
iterateModules
(String baseName, boolean recursive) Iterate the modules which can be located via this module finder.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jboss.modules.IterableModuleFinder
iterateModules, iterateModules
Methods inherited from interface org.jboss.modules.ModuleFinder
findModule
-
Method Details
-
getInstance
-
findModule
Description copied from interface:ModuleFinder
Find a module specification for the given name. The default implementation delegates to the legacyModuleFinder.findModule(ModuleIdentifier, ModuleLoader)
method.- Specified by:
findModule
in interfaceModuleFinder
- Parameters:
name
- the module namedelegateLoader
- the module loader from which dependencies should be resolved- Returns:
- the module specification, or
null
if no specification is found for this identifier
-
toString
-
iterateModules
Description copied from interface:IterableModuleFinder
Iterate the modules which can be located via this module finder.- Specified by:
iterateModules
in interfaceIterableModuleFinder
- Parameters:
baseName
- the identifier to start with, ornull
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 modules- Returns:
- an iterator for the modules in this module finder
-