Package org.jboss.modules
Class JarModuleFinder
- java.lang.Object
-
- org.jboss.modules.JarModuleFinder
-
- All Implemented Interfaces:
ModuleFinder
public final class JarModuleFinder extends Object implements ModuleFinder
A module finder which uses a JAR file as a module repository.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description JarModuleFinder(ModuleIdentifier myIdentifier, JarFile jarFile)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModuleSpec
findModule(ModuleIdentifier identifier, ModuleLoader delegateLoader)
Find a module specification for the given identifier.
-
-
-
Constructor Detail
-
JarModuleFinder
public JarModuleFinder(ModuleIdentifier myIdentifier, JarFile jarFile)
Construct a new instance.- Parameters:
myIdentifier
- the identifier to use for the JAR itselfjarFile
- the JAR file to encapsulate
-
-
Method Detail
-
findModule
public ModuleSpec findModule(ModuleIdentifier identifier, ModuleLoader delegateLoader) throws ModuleLoadException
Description copied from interface:ModuleFinder
Find a module specification for the given identifier.- Specified by:
findModule
in interfaceModuleFinder
- Parameters:
identifier
- the module identifierdelegateLoader
- the module loader from which dependencies should be resolved- Returns:
- the module specification, or
null
if no specification is found for this identifier - Throws:
ModuleLoadException
-
-