Package | Description |
---|---|
org.jboss.modules |
The primary JBoss Modules API.
|
org.jboss.modules.log |
The logging interface for JBoss Modules.
|
Modifier and Type | Method | Description |
---|---|---|
protected Module |
ModuleLoader.findLoadedModuleLocal(String name) |
Find an already-loaded module, returning
null if the module isn't currently loaded. |
protected Module |
ModuleLoader.findLoadedModuleLocal(ModuleIdentifier identifier) |
Deprecated.
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.
Use
getModule(String) instead. |
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.
Use
getModuleFromCallerModuleLoader(String) instead. |
Module |
ModuleLoader.loadModule(String name) |
Load a module based on an identifier.
|
Module |
ModuleLoader.loadModule(ModuleIdentifier identifier) |
Deprecated.
Use
ModuleLoader.loadModule(String) instead. |
protected Module |
ModuleLoader.loadModuleLocal(String name) |
Try to load a module from this module loader.
|
protected Module |
ModuleLoader.loadModuleLocal(ModuleIdentifier moduleIdentifier) |
Deprecated.
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.
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.
Use
ModuleLoader.preloadModule(String) instead. |
protected static Module |
ModuleLoader.preloadModule(ModuleIdentifier identifier,
ModuleLoader moduleLoader) |
Deprecated.
Use
ModuleLoader.preloadModule(String, ModuleLoader) instead. |
Modifier and Type | Method | Description |
---|---|---|
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 boolean |
ModuleLoader.unloadModuleLocal(String moduleId,
Module module) |
Unload a module from this module loader.
|
protected void |
ModuleLoader.unloadModuleLocal(Module module) |
Deprecated.
use
ModuleLoader.unloadModuleLocal(String,Module) instead |
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) |
|
void |
JDKModuleLogger.jaxpClassLoaded(Class<?> jaxpClass,
Module module) |
|
void |
ModuleLogger.jaxpClassLoaded(Class<?> jaxpClass,
Module module) |
|
void |
NoopModuleLogger.jaxpClassLoaded(Class<?> jaxpClass,
Module module) |
|
void |
StreamModuleLogger.jaxpClassLoaded(Class<?> jaxpClass,
Module module) |
|
void |
JDKModuleLogger.jaxpResourceLoaded(URL resourceURL,
Module module) |
|
void |
ModuleLogger.jaxpResourceLoaded(URL resourceURL,
Module module) |
|
void |
NoopModuleLogger.jaxpResourceLoaded(URL resourceURL,
Module module) |
|
void |
StreamModuleLogger.jaxpResourceLoaded(URL resourceURL,
Module module) |
Copyright © 2022 JBoss by Red Hat. All rights reserved.