public class PluginClassLoader extends URLClassLoader
Constructor and Description |
---|
PluginClassLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addDirectory(File directory,
boolean developmentMode)
Adds a directory to the class loader.
|
void |
addURLFile(URL file)
Add the given URL to the classpath for this class loader,
caching the JAR file connection so it can be unloaded later
|
void |
unloadJarFiles()
Unload any JAR files that have been cached by this plugin
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, 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, setSigners
public void addDirectory(File directory, boolean developmentMode)
directory
- the directory.developmentMode
- true if the plugin is running in development mode. This
resolves classloader conflicts between the deployed plugin
and development classes.public void addURLFile(URL file)
file
- URL for the JAR file or directory to append to classpathpublic void unloadJarFiles()
Copyright © 2003–2019 Ignite Realtime. All rights reserved.