public final class JarModuleFinder extends java.lang.Object implements ModuleFinder
| Modifier and Type | Field and Description |
|---|---|
private java.security.AccessControlContext |
context |
private java.util.jar.JarFile |
jarFile |
private ModuleIdentifier |
myIdentifier |
| Constructor and Description |
|---|
JarModuleFinder(ModuleIdentifier myIdentifier,
java.util.jar.JarFile jarFile)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ModuleSpec |
findModule(ModuleIdentifier identifier,
ModuleLoader delegateLoader)
Find a module specification for the given identifier.
|
private final ModuleIdentifier myIdentifier
private final java.util.jar.JarFile jarFile
private final java.security.AccessControlContext context
public JarModuleFinder(ModuleIdentifier myIdentifier, java.util.jar.JarFile jarFile)
myIdentifier - the identifier to use for the JAR itselfjarFile - the JAR file to encapsulatepublic ModuleSpec findModule(ModuleIdentifier identifier, ModuleLoader delegateLoader) throws ModuleLoadException
ModuleFinderfindModule in interface ModuleFinderidentifier - the module identifierdelegateLoader - the module loader from which dependencies should be resolvednull if no specification is found for this identifierModuleLoadException