public class ScanningClasspathModuleRegistry extends AbstractScanningModuleRegistry
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 ScanningClasspathModuleRegistry |
instantiate()
Instantiate ScanningClasspathModuleRegistry as the singleton ModuleRegistry
|
addModuleMeta, addParsedModuleMetasFromDirectories, addParsedModuleMetasFromJars, determineResolutionCandidates, nameSet, nameSet, parseMetadataFiles, replaceProperties, rpmvercmp
addModuleRegistryListener, determineRuntimeDependencies, determineRuntimeUses, determineSingleResolutionCandidate, fireModuleAddedEvent, getResolutionOf, removeModuleRegistryListener, resolve, resolve, toString
getSingleton
public static ScanningClasspathModuleRegistry instantiate() throws IllegalStateException, IOException
IllegalStateException
- 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.