Package | Description |
---|---|
org.jboss.modules |
The primary JBoss Modules API.
|
org.jboss.modules.xml |
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 |
---|---|
private void |
ClassPathModuleLoader.addClassPath(ModuleSpec.Builder builder,
java.lang.String classPath)
Adds the class path entries as dependencies on the builder.
|
private long |
Module.addExportedPaths(Dependency[] dependencies,
java.util.Map<java.lang.String,java.util.List<LocalLoader>> map,
FastCopyHashSet<PathFilter> filterStack,
FastCopyHashSet<ClassFilter> classFilterStack,
FastCopyHashSet<PathFilter> resourceFilterStack,
java.util.Set<Module.Visited> visited) |
private long |
Module.addPaths(Dependency[] dependencies,
java.util.Map<java.lang.String,java.util.List<LocalLoader>> map,
FastCopyHashSet<PathFilter> filterStack,
FastCopyHashSet<ClassFilter> classFilterStack,
FastCopyHashSet<PathFilter> resourceFilterStack,
java.util.Set<Module.Visited> visited) |
private Module |
ModuleLoader.defineModule(ConcreteModuleSpec moduleSpec,
ModuleLoader.FutureModule futureModule)
Defines a Module based on a specification.
|
protected ModuleSpec |
ClassPathModuleLoader.findModule(ModuleIdentifier moduleIdentifier) |
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 |
JarModuleFinder.findModule(ModuleIdentifier identifier,
ModuleLoader delegateLoader) |
ModuleSpec |
LocalModuleFinder.findModule(ModuleIdentifier identifier,
ModuleLoader delegateLoader) |
ModuleSpec |
ModuleFinder.findModule(ModuleIdentifier identifier,
ModuleLoader delegateLoader)
Find a module specification for the given identifier.
|
java.util.Set<java.lang.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.
|
(package private) java.util.Map<java.lang.String,java.util.List<LocalLoader>> |
Module.getPaths() |
java.util.Iterator<Resource> |
Module.globResources(java.lang.String glob)
Enumerate all imported resources in this module which match the given glob expression.
|
java.util.Iterator<Resource> |
Module.iterateResources(PathFilter filter)
Enumerate all the imported resources in this module, subject to a path filter.
|
(package private) void |
Module.link(Linkage linkage) |
static java.lang.Class<?> |
Module.loadClassFromBootModuleLoader(ModuleIdentifier moduleIdentifier,
java.lang.String className)
Load a class from a module in the system module loader.
|
static java.lang.Class<?> |
Module.loadClassFromCallerModuleLoader(ModuleIdentifier moduleIdentifier,
java.lang.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> java.util.ServiceLoader<S> |
Module.loadServiceFromCallerModuleLoader(ModuleIdentifier identifier,
java.lang.Class<S> serviceType)
Load a service loader from a module in the caller's module loader.
|
static ModuleSpec |
LocalModuleFinder.parseModuleXmlFile(ModuleIdentifier identifier,
ModuleLoader delegateLoader,
java.io.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 |
ClassPathModuleLoader.preloadModule(ModuleIdentifier identifier) |
protected Module |
JarModuleLoader.preloadModule(ModuleIdentifier 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.
|
(package private) void |
Module.relink() |
protected void |
ModuleLoader.relink(Module module)
Relinks the dependencies associated with the specified Module.
|
(package private) void |
Module.relinkIfNecessary() |
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.
|
Modifier and Type | Method and Description |
---|---|
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier,
java.io.File root,
java.io.File moduleInfoFile)
Parse a
module.xml file. |
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleXmlParser.ResourceRootFactory factory,
MavenResolver mavenResolver,
java.lang.String rootPath,
java.io.InputStream source,
java.lang.String moduleInfoFile,
ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier)
Parse a
module.xml file. |
static ModuleSpec |
ModuleXmlParser.parseModuleXml(ModuleXmlParser.ResourceRootFactory factory,
java.lang.String rootPath,
java.io.InputStream source,
java.lang.String moduleInfoFile,
ModuleLoader moduleLoader,
ModuleIdentifier moduleIdentifier)
Parse a
module.xml file. |