final class ClassPathModuleLoader extends ModuleLoader
ModuleLoader.MXBeanImpl| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
classPath |
private ModuleLoader |
delegateLoader |
private java.lang.String |
dependencies |
private java.lang.String |
mainClass |
(package private) static java.lang.String[] |
NO_STRINGS |
NO_FINDERS| Constructor and Description |
|---|
ClassPathModuleLoader(ModuleLoader delegateLoader,
java.lang.String mainClass,
java.lang.String classPath,
java.lang.String dependencies) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addClassPath(ModuleSpec.Builder builder,
java.lang.String classPath)
Adds the class path entries as dependencies on the builder.
|
protected ModuleSpec |
findModule(ModuleIdentifier moduleIdentifier)
Find a Module's specification in this ModuleLoader by its identifier.
|
private static boolean |
isEmpty(java.lang.String classPath) |
protected Module |
preloadModule(ModuleIdentifier identifier)
Preload a module based on an identifier.
|
java.lang.String |
toString()
Get the string representation of this module loader.
|
addClassLoadTime, addLinkTime, findLoadedModuleLocal, forClass, forClassLoader, getDependencies, getFinders, incClassCount, incRaceCount, incScanCount, installMBeanServer, iterateModules, loadModule, loadModuleLocal, preloadExportedModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocalstatic final java.lang.String[] NO_STRINGS
private final ModuleLoader delegateLoader
private final java.lang.String classPath
private final java.lang.String dependencies
private final java.lang.String mainClass
ClassPathModuleLoader(ModuleLoader delegateLoader, java.lang.String mainClass, java.lang.String classPath, java.lang.String dependencies)
private static boolean isEmpty(java.lang.String classPath)
protected Module preloadModule(ModuleIdentifier identifier) throws ModuleLoadException
ModuleLoaderModuleLoader.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
ModuleLoadernull. 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 module identifiernull if no module is found with the given identifierModuleLoadException - if any problems occur finding the modulepublic java.lang.String toString()
ModuleLoadertoString in class ModuleLoaderprivate void addClassPath(ModuleSpec.Builder builder, java.lang.String classPath) throws ModuleLoadException
builder - the builder to add the dependency entries to.classPath - the class path to processModuleLoadException - if the class path entry is not found or the entry is a directory.