public class ScanningDirectoriesModuleRegistry extends AbstractScanningModuleRegistry
Modifier and Type | Field and Description |
---|---|
static File[] |
DEFAULT_MODULE_DIRECTORIES
The directories scanned by default if none are given as parameters.
|
protected File[] |
theDirectories
The directories that were scanned.
|
ACTIVATION_CLASS_PROPERTY, theMetas
DEFAULT_DO_NOT_LOAD_CLASS_PREFIXES, RESOLVE_LOCK, theDoNotLoadClassPrefixes
theSingleton
Modifier | Constructor and Description |
---|---|
protected |
ScanningDirectoriesModuleRegistry(File[] dirs,
HashMap<String,MiniModuleMetaMap> metas,
String[] doNotLoadClassPrefixes)
Private constructor, use factory method.
|
Modifier and Type | Method and Description |
---|---|
static ScanningDirectoriesModuleRegistry |
create(File[] dirs)
Factory method.
|
static ScanningDirectoriesModuleRegistry |
create(File[] dirs,
String[] doNotLoadClassPrefixes)
Factory method.
|
File[] |
getScannedDirectories()
Determine the directories that were scanned.
|
String |
toString()
Obtain String representation.
|
addModuleMeta, addParsedModuleMetasFromDirectories, addParsedModuleMetasFromJars, determineResolutionCandidates, nameSet, nameSet, parseMetadataFiles, replaceProperties, rpmvercmp
addModuleRegistryListener, createClassLoader, determineRuntimeDependencies, determineRuntimeUses, determineSingleResolutionCandidate, fireModuleAddedEvent, getResolutionOf, removeModuleRegistryListener, resolve, resolve
getSingleton
protected File[] theDirectories
public static final File[] DEFAULT_MODULE_DIRECTORIES
protected ScanningDirectoriesModuleRegistry(File[] dirs, HashMap<String,MiniModuleMetaMap> metas, String[] doNotLoadClassPrefixes)
dirs
- the directories that were scannedmetas
- the ModuleMetas found during boot, keyed by their name, and then ordered by versiondoNotLoadClassPrefixes
- prefixes of classes always to be loaded through the system class loader, not this onepublic static ScanningDirectoriesModuleRegistry create(File[] dirs)
dirs
- the directories to scanpublic static ScanningDirectoriesModuleRegistry create(File[] dirs, String[] doNotLoadClassPrefixes)
dirs
- the directories to scandoNotLoadClassPrefixes
- prefixes of classes always to be loaded through the system class loader, not this onepublic File[] getScannedDirectories()
public String toString()
toString
in class AbstractModuleRegistry
Copyright © 2018. All rights reserved.