public class PluginClassLoader extends URLClassLoader implements PluginLoader
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
defineClass(String name,
byte[] source)
Creates a new Java class object for the class and the class source given
|
void |
link(Class<?> c)
Links all of the class dependencies
|
Map<String,Class<?>> |
loadedClasses()
Obtains the classes loaded by this plugin loader
|
void |
putClass(Class<?> cls)
Lists the class as loaded
|
void |
unloadClasses()
Unloads the classes that were loaded from this class 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, setSignerspublic void link(Class<?> c)
PluginLoaderlink in interface PluginLoaderc - the class to linkpublic Class<?> defineClass(String name, byte[] source)
PluginLoaderdefineClass in interface PluginLoadername - the class namesource - the class bytecodepublic void putClass(Class<?> cls)
PluginLoaderputClass in interface PluginLoadercls - the class to listpublic void unloadClasses()
PluginLoaderunloadClasses in interface PluginLoaderpublic Map<String,Class<?>> loadedClasses()
PluginLoaderloadedClasses in interface PluginLoaderCopyright © 2016. All rights reserved.