Top Description Fields Constructors Methods
org.jboss.modules

public final Class JarModuleFinder

extends Object
implements ModuleFinder
Class Inheritance
All Implemented Interfaces
org.jboss.modules.ModuleFinder
Annotations
@Deprecated
Imports
java.io.File, .IOException, .InputStream, java.net.URI, .URISyntaxException, java.security.AccessControlContext, .AccessController, java.util.jar.Attributes, .JarEntry, .JarFile, .Manifest, org.jboss.modules.filter.MultiplePathFilterBuilder, .PathFilters, org.jboss.modules.xml.ModuleXmlParser

Deprecated

FileSystemClassPathModuleFinder and/or ResourceLoaderModuleFinder should be used instead for more complete functionality.

A module finder which uses a JAR file as a module repository.
Authors
David M. Lloyd, Richard Opalka

Field Summary

Modifier and TypeField and Description
private final AccessControlContext
context

Deprecated as a consequence of AccessControlContext being deprecated.
private final JarFile
private final String

Constructor Summary

AccessConstructor and Description
public
JarModuleFinder(final ModuleIdentifier
the identifier to use for the JAR itself
myIdentifier
,
final JarFile
the JAR file to encapsulate
jarFile
)

Deprecated as a consequence of ModuleIdentifier being deprecated.
Construct a new instance.
public
JarModuleFinder(final String
the name to use for the JAR itself
myName
,
final JarFile
the JAR file to encapsulate
jarFile
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public ModuleSpec
findModule(final String
the module name
name
,
final ModuleLoader
the module loader from which dependencies should be resolved
delegateLoader
)

Overrides default org.jboss.modules.ModuleFinder.findModule.

Find a module specification for the given name.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private final AccessControlContext context

Deprecated

as a consequence of AccessControlContext being deprecated. See corresponding docs for further information.

jarFileback to summary
private final JarFile jarFile
myNameback to summary
private final String myName

Constructor Detail

JarModuleFinderback to summary
public JarModuleFinder(final ModuleIdentifier myIdentifier, final JarFile jarFile)

Deprecated

as a consequence of ModuleIdentifier being deprecated. See corresponding docs for further information.

Construct a new instance.

Parameters
myIdentifier:ModuleIdentifier

the identifier to use for the JAR itself

jarFile:JarFile

the JAR file to encapsulate

JarModuleFinderback to summary
public JarModuleFinder(final String myName, final JarFile jarFile)

Construct a new instance.

Parameters
myName:String

the name to use for the JAR itself

jarFile:JarFile

the JAR file to encapsulate

Method Detail

findModuleback to summary
public ModuleSpec findModule(final String name, final ModuleLoader delegateLoader) throws ModuleLoadException

Overrides default org.jboss.modules.ModuleFinder.findModule.

Doc from org.jboss.modules.ModuleFinder.findModule.

Find a module specification for the given name. The default implementation delegates to the legacy findModule(ModuleIdentifier, ModuleLoader) method.

Parameters
name:String

the module name

delegateLoader:ModuleLoader

the module loader from which dependencies should be resolved

Returns:ModuleSpec

the module specification, or null if no specification is found for this identifier