public class ModuleClassLoader extends URLClassLoader implements ModuleLoader
Modules that assigns itself ti the module's class loader.| Modifier and Type | Field and Description |
|---|---|
private ModuleConfig |
config |
| Constructor and Description |
|---|
ModuleClassLoader(ModuleConfig config)
Constructs a new class loader for modules
|
| Modifier and Type | Method and Description |
|---|---|
ModuleConfig |
getConfig() |
Module |
loadModule()
Load the module that is attached to this loader.
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprivate ModuleConfig config
public ModuleClassLoader(ModuleConfig config) throws MalformedURLException
config - the module configuration this class loader is meant forMalformedURLException - when ModuleConfig.file does not
resolve to a urlpublic ModuleConfig getConfig()
public Module loadModule() throws Exception
ModuleLoaderloadModule in interface ModuleLoaderException - when an error loading the module happenedCopyright © 2020. All rights reserved.