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 Module
ModuleLoader. findLoadedModuleLocal(java.lang.String name)
Find an already-loaded module, returningnull
if the module isn't currently loaded.protected Module
ModuleLoader. findLoadedModuleLocal(ModuleIdentifier identifier)
Deprecated, for removal: This API element is subject to removal in a future version.UseModuleLoader.findLoadedModuleLocal(String)
instead.static Module
Module. forClass(java.lang.Class<?> clazz)
Get the module for a loaded class, ornull
if the class did not come from any module.static Module
Module. forClassLoader(java.lang.ClassLoader cl, boolean search)
Get the module for a class loader, ornull
if the class loader is not associated with any module.static Module
Module. getCallerModule()
Get the caller's module.Module
Module. getModule(java.lang.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.UsegetModule(String)
instead.Module
ModuleClassLoader. getModule()
Get the module for this class loader.static Module
Module. getModuleFromCallerModuleLoader(java.lang.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.UsegetModuleFromCallerModuleLoader(String)
instead.Module
ModuleLoader. loadModule(java.lang.String name)
Load a module based on an identifier.Module
ModuleLoader. loadModule(ModuleIdentifier identifier)
Deprecated, for removal: This API element is subject to removal in a future version.UseModuleLoader.loadModule(String)
instead.protected Module
ModuleLoader. loadModuleLocal(java.lang.String name)
Try to load a module from this module loader.protected Module
ModuleLoader. loadModuleLocal(ModuleIdentifier moduleIdentifier)
Deprecated, for removal: This API element is subject to removal in a future version.UseModuleLoader.loadModuleLocal(String)
instead.protected Module
ModuleLoader. preloadExportedModule(java.lang.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.UseModuleLoader.preloadModule(String)
instead.protected Module
ClassifyingModuleLoader. preloadModule(java.lang.String name)
Preload a module based on an identifier.protected Module
DelegatingModuleLoader. preloadModule(java.lang.String name)
Preload the named module.protected Module
ModuleLoader. preloadModule(java.lang.String name)
Preload a module based on an identifier.protected static Module
ModuleLoader. preloadModule(java.lang.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.UseModuleLoader.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.UseModuleLoader.preloadModule(String, ModuleLoader)
instead.Methods in org.jboss.modules with parameters of type Module Modifier and Type Method Description java.lang.Class<?>
ClassDefiner. defineClass(Module module, java.lang.String className, java.security.ProtectionDomain protectionDomain, byte[] classBytes)
Define a class.java.lang.Class<?>
ClassDefiner. defineClass(Module module, java.lang.String className, java.security.ProtectionDomain protectionDomain, byte[] classBytes, int off, int len)
Define a class.java.lang.Class<?>
ClassDefiner. defineClass(Module module, java.lang.String className, java.security.ProtectionDomain protectionDomain, java.nio.ByteBuffer classBytes)
Define a class.protected java.lang.String
ModuleClassLoader. getClassNotFoundExceptionMessage(java.lang.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.java.lang.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, java.util.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, java.util.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(java.lang.String moduleId, Module module)
Unload a module from this module loader.protected void
ModuleLoader. unloadModuleLocal(Module module)
Deprecated.useModuleLoader.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(java.lang.String name, Module module)
void
ModuleLogger. classDefined(java.lang.String name, Module module)
void
NoopModuleLogger. classDefined(java.lang.String name, Module module)
void
StreamModuleLogger. classDefined(java.lang.String name, Module module)
void
JDKModuleLogger. classDefineFailed(java.lang.Throwable throwable, java.lang.String className, Module module)
void
ModuleLogger. classDefineFailed(java.lang.Throwable throwable, java.lang.String className, Module module)
void
NoopModuleLogger. classDefineFailed(java.lang.Throwable throwable, java.lang.String className, Module module)
void
StreamModuleLogger. classDefineFailed(java.lang.Throwable throwable, java.lang.String className, Module module)
-