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 ModuleLoaderdelegateprivate java.util.jar.JarFilejarFileprivate ModuleIdentifiermyIdentifier(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) ModuleIdentifiergetMyIdentifier()protected ModulepreloadModule(ModuleIdentifier identifier)Preload a module based on an identifier.private static ModuleIdentifiersimpleNameOf(java.util.jar.JarFile jarFile)java.lang.StringtoString()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:ModuleLoaderPreload 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:
preloadModulein classModuleLoader- Parameters:
identifier- the module identifier- Returns:
- the load result, or
nullif the module is not found - Throws:
ModuleLoadException- if an error occurs
-
getMyIdentifier
ModuleIdentifier getMyIdentifier()
-
toString
public java.lang.String toString()
Description copied from class:ModuleLoaderGet the string representation of this module loader.- Overrides:
toStringin classModuleLoader- Returns:
- the string representation
-
-