Package org.jboss.modules
Class JarModuleFinder
java.lang.Object
org.jboss.modules.JarModuleFinder
- All Implemented Interfaces:
ModuleFinder
A module finder which uses a JAR file as a module repository.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AccessControlContext
private final JarFile
private final ModuleIdentifier
-
Constructor Summary
ConstructorsConstructorDescriptionJarModuleFinder
(ModuleIdentifier myIdentifier, JarFile jarFile) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionfindModule
(ModuleIdentifier identifier, ModuleLoader delegateLoader) Find a module specification for the given identifier.
-
Field Details
-
myIdentifier
-
jarFile
-
context
-
-
Constructor Details
-
JarModuleFinder
Construct a new instance.- Parameters:
myIdentifier
- the identifier to use for the JAR itselfjarFile
- the JAR file to encapsulate
-
-
Method Details
-
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
-