Package org.jboss.modules
Class JarModuleFinder
java.lang.Object
org.jboss.modules.JarModuleFinder
- All Implemented Interfaces:
ModuleFinder
Deprecated.
A module finder which uses a JAR file as a module repository.
- Author:
- David M. Lloyd, Richard Opalka
-
Constructor Summary
ConstructorsConstructorDescriptionJarModuleFinder(String myName, JarFile jarFile) Deprecated.Construct a new instance.JarModuleFinder(ModuleIdentifier myIdentifier, JarFile jarFile) Deprecated, for removal: This API element is subject to removal in a future version.UseJarModuleFinder(String,JarFile)instead. -
Method Summary
Modifier and TypeMethodDescriptionfindModule(String name, ModuleLoader delegateLoader) Deprecated.Find a module specification for the given name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.modules.ModuleFinder
findModule
-
Constructor Details
-
JarModuleFinder
Deprecated, for removal: This API element is subject to removal in a future version.UseJarModuleFinder(String,JarFile)instead.Construct a new instance.- Parameters:
myIdentifier- the identifier to use for the JAR itselfjarFile- the JAR file to encapsulate
-
JarModuleFinder
Deprecated.Construct a new instance.- Parameters:
myName- the name to use for the JAR itselfjarFile- the JAR file to encapsulate
-
-
Method Details
-
findModule
Deprecated.Description copied from interface:ModuleFinderFind a module specification for the given name. The default implementation delegates to the legacyModuleFinder.findModule(ModuleIdentifier, ModuleLoader)method for now, however this behavior will be discontinued in the future.- Specified by:
findModulein interfaceModuleFinder- Parameters:
name- the module namedelegateLoader- the module loader from which dependencies should be resolved- Returns:
- the module specification, or
nullif no specification is found for this identifier - Throws:
ModuleLoadException
-
FileSystemClassPathModuleFinderand/orResourceLoaderModuleFindershould be used instead for more complete functionality.