Package org.jboss.modules
Class JDKModuleFinder
- java.lang.Object
-
- org.jboss.modules.JDKModuleFinder
-
- All Implemented Interfaces:
IterableModuleFinder,ModuleFinder
public final class JDKModuleFinder extends java.lang.Object implements IterableModuleFinder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleSpecfindModule(java.lang.String name, ModuleLoader delegateLoader)Find a module specification for the given name.static JDKModuleFindergetInstance()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.StringtoString()-
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 Detail
-
getInstance
public static JDKModuleFinder getInstance()
-
findModule
public ModuleSpec findModule(java.lang.String name, ModuleLoader delegateLoader)
Description copied from interface:ModuleFinderFind a module specification for the given name. The default implementation delegates to the legacyModuleFinder.findModule(ModuleIdentifier, ModuleLoader)method.- Specified by:
findModulein interfaceModuleFinder- Parameters:
name- the module namedelegateLoader- the module loader from which dependencies should be resolved- Returns:
- the module specification, or
nullif no specification is found for this identifier
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
iterateModules
public java.util.Iterator<java.lang.String> iterateModules(java.lang.String baseName, boolean recursive)Description copied from interface:IterableModuleFinderIterate the modules which can be located via this module finder.- Specified by:
iterateModulesin interfaceIterableModuleFinder- Parameters:
baseName- the identifier to start with, ornullto iterate all modules; ignored if this module loader does not have a concept of nested modulesrecursive-trueto find recursively nested modules,falseto 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
-
-