public final class ClassifyingModuleLoader extends ModuleLoader
NO_FINDERS| Constructor | Description | 
|---|---|
ClassifyingModuleLoader(String name,
                       Map<String,ModuleLoader> delegates,
                       ModuleLoader defaultLoader) | 
 Construct a new instance. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
protected ModuleSpec | 
findModule(String name) | 
 Find a Module's specification in this ModuleLoader by its name. 
 | 
protected Module | 
preloadModule(String name) | 
 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, findLoadedModuleLocal, findModule, forClass, forClassLoader, getDependencies, getFinders, getModuleDescription, iterateModules, iterateModules, loadModule, loadModule, loadModuleLocal, loadModuleLocal, preloadExportedModule, preloadExportedModule, preloadModule, preloadModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocal, 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(String name) throws ModuleLoadException
ModuleLoader.loadModuleLocal(String).  A delegating module loader may delegate to the appropriate module
 loader based on loader-specific criteria (via the ModuleLoader.preloadModule(String, ModuleLoader) method).preloadModule in class ModuleLoadername - the module identifiernull if the module is not foundModuleLoadException - if an error occursprotected ModuleSpec findModule(String name) 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 ModuleLoadername - the module namenull 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 © 2022 JBoss by Red Hat. All rights reserved.