Package org.jboss.modules
Class JarModuleLoader
java.lang.Object
org.jboss.modules.ModuleLoader
org.jboss.modules.JarModuleLoader
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.modules.ModuleLoader
ModuleLoader.MXBeanImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ModuleLoaderprivate final JarFileprivate final ModuleIdentifier(package private) static final String[]Fields inherited from class org.jboss.modules.ModuleLoader
NO_FINDERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ModuleIdentifierprotected ModulepreloadModule(ModuleIdentifier identifier) Preload a module based on an identifier.private static ModuleIdentifiersimpleNameOf(JarFile jarFile) 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 Details
-
NO_STRINGS
-
delegate
-
jarFile
-
myIdentifier
-
-
Constructor Details
-
JarModuleLoader
JarModuleLoader(ModuleLoader delegate, JarFile jarFile)
-
-
Method Details
-
simpleNameOf
-
preloadModule
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
Description copied from class:ModuleLoaderGet the string representation of this module loader.- Overrides:
toStringin classModuleLoader- Returns:
- the string representation
-