public class InClasspathModuleRegistry extends AbstractScanningModuleRegistry
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
theClassLoader
The ClassLoader that was used to scan.
|
ACTIVATION_CLASS_PROPERTY, theMetas
DEFAULT_DO_NOT_LOAD_CLASS_PREFIXES, RESOLVE_LOCK, theDoNotLoadClassPrefixes
theSingleton
Modifier and Type | Method and Description |
---|---|
ClassLoader |
createClassLoader(Module module,
ClassLoader parentClassLoader)
ModuleRegistry also acts as a factory for the Modules' ClassLoaders.
|
protected static HashMap<String,MiniModuleMetaMap> |
findModuleMetas(ClassLoader cl)
Find the ModuleMetas available to this ClassLoader.
|
static InClasspathModuleRegistry |
instantiate(ClassLoader loader)
Instantiate an InClasspathModuleRegistry as the singleton ModuleRegistry
|
static ModuleRegistry |
instantiateOrGet(ClassLoader loader)
Obtain the already instantiated ModuleRegistry, or instantiate an InclasspathModuleRegistry
as the singleton ModuleRegistry.
|
addModuleMeta, addParsedModuleMetasFromDirectories, addParsedModuleMetasFromJars, determineResolutionCandidates, nameSet, nameSet, parseMetadataFiles, replaceProperties, rpmvercmp
addModuleRegistryListener, determineRuntimeDependencies, determineRuntimeUses, determineSingleResolutionCandidate, fireModuleAddedEvent, getResolutionOf, removeModuleRegistryListener, resolve, resolve, toString
getSingleton
protected final ClassLoader theClassLoader
public static InClasspathModuleRegistry instantiate(ClassLoader loader) throws IllegalStateException, IOException
loader
- the ClassLoader where to find the ModulesIllegalStateException
- thrown if there is already a singleton instanceIOException
- reading files failedpublic static ModuleRegistry instantiateOrGet(ClassLoader loader) throws IllegalStateException, IOException
loader
- the ClassLoader where to find the ModulesIllegalStateException
- thrown if there is already a singleton instanceIOException
- reading files failedpublic ClassLoader createClassLoader(Module module, ClassLoader parentClassLoader)
createClassLoader
in class AbstractModuleRegistry
module
- the Module for which to create a ClassLoaderparentClassLoader
- the ClassLoader to use as the parent ClassLoaderprotected static HashMap<String,MiniModuleMetaMap> findModuleMetas(ClassLoader cl) throws IOException
cl
- the class loaderIOException
- reading files failedCopyright © 2018. All rights reserved.