public final class JarModuleFinder extends Object implements ModuleFinder
Constructor and Description |
---|
JarModuleFinder(ModuleIdentifier myIdentifier,
JarFile jarFile)
Construct a new instance.
|
JarModuleFinder(String myName,
JarFile jarFile)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ModuleSpec |
findModule(String name,
ModuleLoader delegateLoader)
Find a module specification for the given name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findModule
public JarModuleFinder(ModuleIdentifier myIdentifier, JarFile jarFile)
myIdentifier
- the identifier to use for the JAR itselfjarFile
- the JAR file to encapsulatepublic ModuleSpec findModule(String name, ModuleLoader delegateLoader) throws ModuleLoadException
ModuleFinder
ModuleFinder.findModule(ModuleIdentifier, ModuleLoader)
method.findModule
in interface ModuleFinder
name
- the module namedelegateLoader
- the module loader from which dependencies should be resolvednull
if no specification is found for this identifierModuleLoadException
Copyright © 2017. All rights reserved.