public final class JarModuleFinder extends Object implements ModuleFinder
Constructor and Description |
---|
JarModuleFinder(ModuleIdentifier myIdentifier,
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.
|
public JarModuleFinder(ModuleIdentifier myIdentifier, JarFile jarFile)
myIdentifier
- the identifier to use for the JAR itselfjarFile
- the JAR file to encapsulatepublic ModuleSpec findModule(ModuleIdentifier identifier, ModuleLoader delegateLoader) throws ModuleLoadException
ModuleFinder
findModule
in interface ModuleFinder
identifier
- the module identifierdelegateLoader
- the module loader from which dependencies should be resolvednull
if no specification is found for this identifierModuleLoadException
Copyright © 2017 JBoss by Red Hat. All rights reserved.