Package | Description |
---|---|
org.jboss.modules |
The primary JBoss Modules API.
|
Modifier and Type | Class and Description |
---|---|
class |
ModuleNotFoundException
Module not found exceptions are thrown when no module loaders can locate a module which fulfills a given module
identifier.
|
Modifier and Type | Method and Description |
---|---|
ModuleLoadException |
ModuleLoadError.toException()
Convert to a checked exception type.
|
Modifier and Type | Method and Description |
---|---|
protected ModuleSpec |
ModuleLoader.findModule(ModuleIdentifier moduleIdentifier)
Find a Module's specification in this ModuleLoader by its identifier.
|
protected ModuleSpec |
ClassifyingModuleLoader.findModule(ModuleIdentifier moduleIdentifier)
Find a Module's specification in this ModuleLoader by its identifier.
|
ModuleSpec |
LocalModuleFinder.findModule(ModuleIdentifier identifier,
ModuleLoader delegateLoader) |
ModuleSpec |
ModuleFinder.findModule(ModuleIdentifier identifier,
ModuleLoader delegateLoader)
Find a module specification for the given identifier.
|
ModuleSpec |
JarModuleFinder.findModule(ModuleIdentifier identifier,
ModuleLoader delegateLoader) |
Set<String> |
Module.getImportedPaths()
Get the (unmodifiable) set of paths which are imported into this module class loader, including local paths.
|
Module |
Module.getModule(ModuleIdentifier identifier)
Get the module with the given identifier from the module loader used by this module.
|
static Module |
Module.getModuleFromCallerModuleLoader(ModuleIdentifier identifier)
Get a module from the current module loader.
|
Iterator<Resource> |
Module.globResources(String glob)
Enumerate all imported resources in this module which match the given glob expression.
|
Iterator<Resource> |
Module.iterateResources(PathFilter filter)
Enumerate all the imported resources in this module, subject to a path filter.
|
static Class<?> |
Module.loadClassFromBootModuleLoader(ModuleIdentifier moduleIdentifier,
String className)
Load a class from a module in the system module loader.
|
static Class<?> |
Module.loadClassFromCallerModuleLoader(ModuleIdentifier moduleIdentifier,
String className)
Load a class from a module in the caller's module loader.
|
Module |
ModuleLoader.loadModule(ModuleIdentifier identifier)
Load a module based on an identifier.
|
protected Module |
ModuleLoader.loadModuleLocal(ModuleIdentifier identifier)
Try to load a module from this module loader.
|
static <S> ServiceLoader<S> |
Module.loadServiceFromCallerModuleLoader(ModuleIdentifier identifier,
Class<S> serviceType)
Load a service loader from a module in the caller's module loader.
|
static ModuleSpec |
LocalModuleFinder.parseModuleXmlFile(ModuleIdentifier identifier,
ModuleLoader delegateLoader,
File... roots)
Parse a
module.xml file and return the corresponding module specification. |
protected Module |
ModuleLoader.preloadExportedModule(ModuleIdentifier identifier)
Preload an "exported" module based on an identifier.
|
protected Module |
ModuleLoader.preloadModule(ModuleIdentifier identifier)
Preload a module based on an identifier.
|
protected Module |
ClassifyingModuleLoader.preloadModule(ModuleIdentifier moduleIdentifier)
Preload a module based on an identifier.
|
protected static Module |
ModuleLoader.preloadModule(ModuleIdentifier identifier,
ModuleLoader moduleLoader)
Utility method to delegate to another module loader, accessible from subclasses.
|
protected void |
ModuleLoader.relink(Module module)
Relinks the dependencies associated with the specified Module.
|
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.
|
Copyright © 2017 JBoss by Red Hat. All rights reserved.