
public final class ClassifyingModuleLoader extends ModuleLoader
NO_FINDERS| Constructor and Description |
|---|
ClassifyingModuleLoader(String name,
Map<String,ModuleLoader> delegates,
ModuleLoader defaultLoader)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected ModuleSpec |
findModule(ModuleIdentifier moduleIdentifier)
Find a Module's specification in this ModuleLoader by its identifier.
|
protected Module |
preloadModule(ModuleIdentifier moduleIdentifier)
Preload a module based on an identifier.
|
void |
setDelegates(Map<String,ModuleLoader> delegates)
Change the delegates map.
|
String |
toString()
Get the string representation of this module loader.
|
findLoadedModuleLocal, forClass, forClassLoader, getDependencies, getFinders, iterateModules, loadModule, loadModuleLocal, preloadExportedModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocalpublic ClassifyingModuleLoader(String name, Map<String,ModuleLoader> delegates, ModuleLoader defaultLoader)
delegates - the default delegates map to usedefaultLoader - the default loader to use if no delegate mapping existsprotected Module preloadModule(ModuleIdentifier moduleIdentifier) throws ModuleLoadException
ModuleLoader.loadModuleLocal(ModuleIdentifier). A delegating module loader may delegate to the appropriate module
loader based on loader-specific criteria (via the ModuleLoader.preloadModule(ModuleIdentifier, ModuleLoader) method).preloadModule in class ModuleLoadermoduleIdentifier - the module identifiernull if the module is not foundModuleLoadException - if an error occursprotected ModuleSpec findModule(ModuleIdentifier moduleIdentifier) throws ModuleLoadException
null. If the module is found but some problem occurred (for example, a transitive dependency failed to load)
then this method should throw a ModuleLoadException of the relevant type.findModule in class ModuleLoadermoduleIdentifier - the module identifiernull if no module is found with the given identifierModuleLoadException - if any problems occur finding the modulepublic void setDelegates(Map<String,ModuleLoader> delegates)
delegates - the new delegates map to usepublic String toString()
ModuleLoadertoString in class ModuleLoaderCopyright © 2013 JBoss by Red Hat. All Rights Reserved.