
public final class LocalModuleLoader extends ModuleLoader
| Constructor and Description |
|---|
LocalModuleLoader()
Construct a new instance, using the
module.path system property or the JAVA_MODULEPATH environment variable
to get the list of module repository roots. |
LocalModuleLoader(File[] repoRoots)
Construct a new instance.
|
LocalModuleLoader(File[] repoRoots,
PathFilter pathFilter)
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 identifier)
Preload a module based on an identifier.
|
String |
toString()
Get the string representation of this module loader.
|
findLoadedModuleLocal, forClass, forClassLoader, loadModule, loadModuleLocal, preloadExportedModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocalpublic LocalModuleLoader(File[] repoRoots)
repoRoots - the array of repository roots to look for modulespublic LocalModuleLoader(File[] repoRoots, PathFilter pathFilter)
repoRoots - the array of repository roots to look for modulespathFilter - the path filter to apply to rootspublic LocalModuleLoader()
module.path system property or the JAVA_MODULEPATH environment variable
to get the list of module repository roots.protected Module preloadModule(ModuleIdentifier identifier) 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 ModuleLoaderidentifier - 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 modules Identifiernull if no module is found with the given identifierModuleLoadException - if any problems occur finding the modulepublic String toString()
ModuleLoadertoString in class ModuleLoaderCopyright © 2013 JBoss by Red Hat. All Rights Reserved.