public final class ClassifyingModuleLoader extends ModuleLoader
NO_FINDERS| Constructor | Description | 
|---|---|
ClassifyingModuleLoader(java.lang.String name,
                       java.util.Map<java.lang.String,ModuleLoader> delegates,
                       ModuleLoader defaultLoader) | 
 Construct a new instance. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
protected ModuleSpec | 
findModule(java.lang.String name) | 
 Find a Module's specification in this ModuleLoader by its name. 
 | 
protected Module | 
preloadModule(java.lang.String name) | 
 Preload a module based on an identifier. 
 | 
void | 
setDelegates(java.util.Map<java.lang.String,ModuleLoader> delegates) | 
 Change the delegates map. 
 | 
java.lang.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(java.lang.String name,
                               java.util.Map<java.lang.String,ModuleLoader> delegates,
                               ModuleLoader defaultLoader)
delegates - the default delegates map to usedefaultLoader - the default loader to use if no delegate mapping existsprotected Module preloadModule(java.lang.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(java.lang.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(java.util.Map<java.lang.String,ModuleLoader> delegates)
delegates - the new delegates map to usepublic java.lang.String toString()
ModuleLoadertoString in class ModuleLoaderCopyright © 2022 JBoss by Red Hat. All rights reserved.