# Uses of Class
org.jboss.modules.Module

Packages that use Module
Package
Description
org.jboss.modules
The primary JBoss Modules API.
org.jboss.modules.log
The logging interface for JBoss Modules.

## Uses of Module in org.jboss.modules

Methods in org.jboss.modules that return Module
Modifier and Type
Method
Description
`protected final Module`
ModuleLoader.`findLoadedModuleLocal(String name)`
Find an already-loaded module, returning `null` if the module isn't currently loaded.
`protected final Module`
ModuleLoader.`findLoadedModuleLocal(ModuleIdentifier identifier)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleLoader.findLoadedModuleLocal(String)` instead.
`static Module`
Module.`forClass(Class<?> clazz)`
Get the module for a loaded class, or `null` if the class did not come from any module.
`static Module`
Module.`forClassLoader(ClassLoader cl, boolean search)`
Get the module for a class loader, or `null` if the class loader is not associated with any module.
`static Module`
Module.`getCallerModule()`
Get the caller's module.
`Module`
Module.`getModule(String name)`
Get the module with the given identifier from the module loader used by this module.
`Module`
Module.`getModule(ModuleIdentifier identifier)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `getModule(String)` instead.
`final Module`
ModuleClassLoader.`getModule()`
Get the module for this class loader.
`static Module`
Module.`getModuleFromCallerModuleLoader(String name)`
Get a module from the current module loader.
`static Module`
Module.`getModuleFromCallerModuleLoader(ModuleIdentifier identifier)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `getModuleFromCallerModuleLoader(String)` instead.
`final Module`
ModuleLoader.`loadModule(String name)`
Load a module based on an identifier.
`final Module`
ModuleLoader.`loadModule(ModuleIdentifier identifier)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleLoader.loadModule(String)` instead.
`protected final Module`
ModuleLoader.`loadModuleLocal(String name)`
Try to load a module from this module loader.
`protected final Module`
ModuleLoader.`loadModuleLocal(ModuleIdentifier moduleIdentifier)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleLoader.loadModuleLocal(String)` instead.
`protected Module`
ModuleLoader.`preloadExportedModule(String name)`
Preload an "exported" module based on an identifier.
`protected Module`
ModuleLoader.`preloadExportedModule(ModuleIdentifier identifier)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleLoader.preloadModule(String)` instead.
`protected Module`
ClassifyingModuleLoader.`preloadModule(String name)`
Preload a module based on an identifier.
`protected Module`
DelegatingModuleLoader.`preloadModule(String name)`
Preload the named module.
`protected Module`
ModuleLoader.`preloadModule(String name)`
Preload a module based on an identifier.
`protected static Module`
ModuleLoader.`preloadModule(String name, ModuleLoader moduleLoader)`
Utility method to delegate to another module loader, accessible from subclasses.
`protected Module`
ModuleLoader.`preloadModule(ModuleIdentifier identifier)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleLoader.preloadModule(String)` instead.
`protected static Module`
ModuleLoader.`preloadModule(ModuleIdentifier identifier, ModuleLoader moduleLoader)`
Deprecated, for removal: This API element is subject to removal in a future version.
Use `ModuleLoader.preloadModule(String, ModuleLoader)` instead.
Methods in org.jboss.modules with parameters of type Module
Modifier and Type
Method
Description
`Class<?>`
ClassDefiner.`defineClass(Module module, String className, ProtectionDomain protectionDomain, byte[] classBytes)`
Define a class.
`Class<?>`
ClassDefiner.`defineClass(Module module, String className, ProtectionDomain protectionDomain, byte[] classBytes, int off, int len)`
Define a class.
`Class<?>`
ClassDefiner.`defineClass(Module module, String className, ProtectionDomain protectionDomain, ByteBuffer classBytes)`
Define a class.
`protected String`
ModuleClassLoader.`getClassNotFoundExceptionMessage(String className, Module fromModule)`
Returns an exception message used when producing instances of ClassNotFoundException.
`protected DependencySpec[]`
ModuleLoader.`getDependencies(Module module)`
Get the current dependency list for a module which was defined by this module loader, without any access checks.
`String`
ModuleLoader.`getModuleDescription(Module module)`
Get a string representation of the given module, used in debug output and stack traces.
`protected void`
ModuleLoader.`refreshResourceLoaders(Module module)`
Refreshes the paths provided by resource loaders associated with the specified Module.
`static void`
Module.`registerContentHandlerFactoryModule(Module module)`
Register an additional module which contains content handlers.
`static void`
Module.`registerURLStreamHandlerFactoryModule(Module module)`
Register an additional module which contains URL handlers.
`protected void`
ModuleLoader.`relink(Module module)`
Relinks the dependencies associated with the specified Module.
`protected void`
ModuleLoader.`setAndRefreshResourceLoaders(Module module, Collection<ResourceLoaderSpec> loaders)`
Replaces the resources loaders for the specified module and refreshes the internal path list that is derived from the loaders.
`protected void`
ModuleLoader.`setAndRelinkDependencies(Module module, List<DependencySpec> dependencies)`
Replaces the dependencies for the specified module and relinks against the new modules This is an advanced method that should be used carefully, since it alters a live module.
`protected final boolean`
ModuleLoader.`unloadModuleLocal(String moduleId, Module module)`
Unload a module from this module loader.
`protected final void`
ModuleLoader.`unloadModuleLocal(Module module)`
Deprecated.
use `ModuleLoader.unloadModuleLocal(String,Module)` instead

## Uses of Module in org.jboss.modules.log

Methods in org.jboss.modules.log with parameters of type Module
Modifier and Type
Method
Description
`void`
JDKModuleLogger.`classDefined(String name, Module module)`
`void`
ModuleLogger.`classDefined(String name, Module module)`
`void`
NoopModuleLogger.`classDefined(String name, Module module)`
`void`
StreamModuleLogger.`classDefined(String name, Module module)`
`void`
JDKModuleLogger.`classDefineFailed(Throwable throwable, String className, Module module)`
`void`
ModuleLogger.`classDefineFailed(Throwable throwable, String className, Module module)`
`void`
NoopModuleLogger.`classDefineFailed(Throwable throwable, String className, Module module)`
`void`
StreamModuleLogger.`classDefineFailed(Throwable throwable, String className, Module module)`