Package org.jboss.modules
Class JarModuleFinder
- java.lang.Object
-
- org.jboss.modules.JarModuleFinder
-
- All Implemented Interfaces:
ModuleFinder
@Deprecated public final class JarModuleFinder extends java.lang.Object implements ModuleFinder
Deprecated.FileSystemClassPathModuleFinder
and/orResourceLoaderModuleFinder
should be used instead for more complete functionality.A module finder which uses a JAR file as a module repository.- Author:
- David M. Lloyd, Richard Opalka
-
-
Constructor Summary
Constructors Constructor Description JarModuleFinder(java.lang.String myName, java.util.jar.JarFile jarFile)
Deprecated.Construct a new instance.JarModuleFinder(ModuleIdentifier myIdentifier, java.util.jar.JarFile jarFile)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ModuleSpec
findModule(java.lang.String name, ModuleLoader delegateLoader)
Deprecated.Find a module specification for the given name.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.modules.ModuleFinder
findModule
-
-
-
-
Constructor Detail
-
JarModuleFinder
public JarModuleFinder(ModuleIdentifier myIdentifier, java.util.jar.JarFile jarFile)
Deprecated.Construct a new instance.- Parameters:
myIdentifier
- the identifier to use for the JAR itselfjarFile
- the JAR file to encapsulate
-
JarModuleFinder
public JarModuleFinder(java.lang.String myName, java.util.jar.JarFile jarFile)
Deprecated.Construct a new instance.- Parameters:
myName
- the name to use for the JAR itselfjarFile
- the JAR file to encapsulate
-
-
Method Detail
-
findModule
public ModuleSpec findModule(java.lang.String name, ModuleLoader delegateLoader) throws ModuleLoadException
Deprecated.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 - Throws:
ModuleLoadException
-
-