Package org.jboss.modules
Class JarModuleLoader
- java.lang.Object
-
- org.jboss.modules.ModuleLoader
-
- org.jboss.modules.JarModuleLoader
-
final class JarModuleLoader extends ModuleLoader
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jboss.modules.ModuleLoader
ModuleLoader.MXBeanImpl
-
-
Field Summary
Fields Modifier and Type Field Description private ModuleLoader
delegate
private java.util.jar.JarFile
jarFile
private ModuleIdentifier
myIdentifier
(package private) static java.lang.String[]
NO_STRINGS
-
Fields inherited from class org.jboss.modules.ModuleLoader
NO_FINDERS
-
-
Constructor Summary
Constructors Constructor Description JarModuleLoader(ModuleLoader delegate, java.util.jar.JarFile jarFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ModuleIdentifier
getMyIdentifier()
protected Module
preloadModule(ModuleIdentifier identifier)
Preload a module based on an identifier.private static ModuleIdentifier
simpleNameOf(java.util.jar.JarFile jarFile)
java.lang.String
toString()
Get the string representation of this module loader.-
Methods inherited from class org.jboss.modules.ModuleLoader
addClassLoadTime, addLinkTime, findLoadedModuleLocal, findModule, forClass, forClassLoader, getDependencies, getFinders, incClassCount, incRaceCount, incScanCount, installMBeanServer, iterateModules, loadModule, loadModuleLocal, preloadExportedModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocal
-
-
-
-
Field Detail
-
NO_STRINGS
static final java.lang.String[] NO_STRINGS
-
delegate
private final ModuleLoader delegate
-
jarFile
private final java.util.jar.JarFile jarFile
-
myIdentifier
private final ModuleIdentifier myIdentifier
-
-
Constructor Detail
-
JarModuleLoader
JarModuleLoader(ModuleLoader delegate, java.util.jar.JarFile jarFile)
-
-
Method Detail
-
simpleNameOf
private static ModuleIdentifier simpleNameOf(java.util.jar.JarFile jarFile)
-
preloadModule
protected Module preloadModule(ModuleIdentifier identifier) throws ModuleLoadException
Description copied from class:ModuleLoader
Preload a module based on an identifier. By default, no delegation is done and this method simply invokesModuleLoader.loadModuleLocal(ModuleIdentifier)
. A delegating module loader may delegate to the appropriate module loader based on loader-specific criteria (via theModuleLoader.preloadModule(ModuleIdentifier, ModuleLoader)
method).- Overrides:
preloadModule
in classModuleLoader
- Parameters:
identifier
- the module identifier- Returns:
- the load result, or
null
if the module is not found - Throws:
ModuleLoadException
- if an error occurs
-
getMyIdentifier
ModuleIdentifier getMyIdentifier()
-
toString
public java.lang.String toString()
Description copied from class:ModuleLoader
Get the string representation of this module loader.- Overrides:
toString
in classModuleLoader
- Returns:
- the string representation
-
-