Top Description Fields Constructors Methods
org.jboss.modules

public Class DelegatingModuleLoader

extends ModuleLoader
Class Inheritance
Known Direct Subclasses
org.jboss.modules.LocalModuleLoader

A module loader which searches its finders first, and then delegates to another loader if the module is not found.

Field Summary

Modifier and TypeField and Description
private final ModuleLoader
Inherited from org.jboss.modules.ModuleLoader:
NO_FINDERSNOT_FOUND

Constructor Summary

AccessConstructor and Description
public
DelegatingModuleLoader(final ModuleLoader
the delegate module loader, or null to skip delegation
delegate
,
final ModuleFinder[]
the module finders (must not be null)
finders
)

Construct a new instance.

public
DelegatingModuleLoader(final ModuleLoader
the delegate module loader, or null to skip delegation
delegate
,
final ModuleFinder
the single module finder (must not be null)
finder
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
protected Module

Returns:

the loaded module, or null if it is not found in this loader or the delegate
preloadModule
(final String
the module name (must not be null)
name
)

Overrides org.jboss.modules.ModuleLoader.preloadModule.

Preload the named module.
Inherited from org.jboss.modules.ModuleLoader:
addClassLoadTimeaddLinkTimefindLoadedModuleLocalfindLoadedModuleLocalfindModulefindModuleforClassforClassLoadergetDependenciesgetFindersgetModuleDescriptionincClassCountincRaceCountincScanCountinstallMBeanServeriterateModulesiterateModulesloadModuleloadModuleloadModuleLocalloadModuleLocalpreloadExportedModulepreloadExportedModulepreloadModulepreloadModulepreloadModulerefreshResourceLoadersrelinksetAndRefreshResourceLoaderssetAndRelinkDependenciestoStringunloadModuleLocalunloadModuleLocal

Field Detail

delegateback to summary
private final ModuleLoader delegate

Constructor Detail

DelegatingModuleLoaderback to summary
public DelegatingModuleLoader(final ModuleLoader delegate, final ModuleFinder[] finders)

Construct a new instance.

Parameters
delegate:ModuleLoader

the delegate module loader, or null to skip delegation

finders:ModuleFinder[]

the module finders (must not be null)

DelegatingModuleLoaderback to summary
public DelegatingModuleLoader(final ModuleLoader delegate, final ModuleFinder finder)

Construct a new instance.

Parameters
delegate:ModuleLoader

the delegate module loader, or null to skip delegation

finder:ModuleFinder

the single module finder (must not be null)

Method Detail

preloadModuleback to summary
protected Module preloadModule(final String name) throws ModuleLoadException

Overrides org.jboss.modules.ModuleLoader.preloadModule.

Preload the named module.

Parameters
name:String

the module name (must not be null)

Returns:Module

the loaded module, or null if it is not found in this loader or the delegate

Exceptions
ModuleLoadException:
if the module was found but failed to be loaded