Package | Description |
---|---|
org.jboss.modules |
The primary JBoss Modules API.
|
org.jboss.modules.xml |
Modifier and Type | Class | 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 | Description |
---|---|---|
ModuleLoadException |
ModuleLoadError.toException() |
Convert to a checked exception type.
|
Modifier and Type | Method | Description |
---|---|---|
protected ModuleSpec |
ClassifyingModuleLoader.findModule(String name) |
Find a Module's specification in this ModuleLoader by its name.
|
ModuleSpec |
FileSystemClassPathModuleFinder.findModule(String name,
ModuleLoader delegateLoader) |
|
ModuleSpec |
JarModuleFinder.findModule(String name,
ModuleLoader delegateLoader) |
Deprecated.
|
ModuleSpec |
JDKModuleFinder.findModule(String name,
ModuleLoader delegateLoader) |
|
ModuleSpec |
LocalModuleFinder.findModule(String name,
ModuleLoader delegateLoader) |
|
default ModuleSpec |
ModuleFinder.findModule(String name,
ModuleLoader delegateLoader) |
Find a module specification for the given name.
|
default ModuleSpec |
ModuleFinder.findModule(ModuleIdentifier moduleIdentifier,
ModuleLoader delegateLoader) |
Find a module specification for the given identifier.
|
protected ModuleSpec |
ModuleLoader.findModule(String name) |
Find a Module's specification in this ModuleLoader by its name.
|
protected ModuleSpec |
ModuleLoader.findModule(ModuleIdentifier moduleIdentifier) |
Deprecated.
Use
ModuleLoader.findModule(String) instead. |
ModuleSpec |
ResourceLoaderModuleFinder.findModule(String name,
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(String name) |
Get the module with the given identifier from the module loader used by this module.
|
Module |
Module.getModule(ModuleIdentifier identifier) |
Deprecated.
Use
Module.getModule(String) instead. |
static Module |
Module.getModuleFromCallerModuleLoader(String name) |
Get a module from the current module loader.
|
static Module |
Module.getModuleFromCallerModuleLoader(ModuleIdentifier identifier) |
Deprecated.
Use
Module.getModuleFromCallerModuleLoader(String) instead. |
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(String name,
String className) |
Load a class from a module in the system module loader.
|
static Class<?> |
Module.loadClassFromBootModuleLoader(ModuleIdentifier moduleIdentifier,
String className) |
Deprecated.
Use
Module.loadClassFromBootModuleLoader(String, String) instead. |
static Class<?> |
Module.loadClassFromCallerModuleLoader(String name,
String className) |
Load a class from a module in the caller's module loader.
|
static Class<?> |
Module.loadClassFromCallerModuleLoader(ModuleIdentifier moduleIdentifier,
String className) |
Deprecated.
|
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. |
static <S> ServiceLoader<S> |
Module.loadServiceFromCallerModuleLoader(String name,
Class<S> serviceType) |
Load a service loader from a module in the caller's module loader.
|
static <S> ServiceLoader<S> |
Module.loadServiceFromCallerModuleLoader(ModuleIdentifier identifier,
Class<S> serviceType) |
Deprecated.
|
static ModuleSpec |
LocalModuleFinder.parseModuleXmlFile(String name,
ModuleLoader delegateLoader,
File... roots) |
Parse a
module.xml file and return the corresponding module specification. |
static ModuleSpec |
LocalModuleFinder.parseModuleXmlFile(ModuleIdentifier identifier,
ModuleLoader delegateLoader,
File... roots) |
Deprecated.
|
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. |
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.
|
Modifier and Type | Method | Description |
---|---|---|
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleLoader moduleLoader,
String moduleName,
File root,
File moduleInfoFile) |
Parse a
module.xml file. |
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier,
File root,
File moduleInfoFile) |
Deprecated.
|
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleXmlParser.ResourceRootFactory factory,
String rootPath,
InputStream source,
String moduleInfoFile,
ModuleLoader moduleLoader,
String moduleName) |
Parse a
module.xml file. |
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleXmlParser.ResourceRootFactory factory,
String rootPath,
InputStream source,
String moduleInfoFile,
ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier) |
|
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleXmlParser.ResourceRootFactory factory,
MavenResolver mavenResolver,
String rootPath,
InputStream source,
String moduleInfoFile,
ModuleLoader moduleLoader,
String moduleName) |
Parse a
module.xml file. |
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleXmlParser.ResourceRootFactory factory,
MavenResolver mavenResolver,
String rootPath,
InputStream source,
String moduleInfoFile,
ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier) |
|
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleXmlParser.ResourceRootFactory factory,
ModuleLoader moduleLoader,
String moduleName,
File root,
File moduleInfoFile) |
Parse a
module.xml file. |
Copyright © 2018 JBoss by Red Hat. All rights reserved.