public class PluginClassLoader extends URLClassLoader implements Lifecycle
Constructor and Description |
---|
PluginClassLoader() |
PluginClassLoader(ClassLoader parent) |
PluginClassLoader(ClassLoader parent,
File sharedDirectory,
File pluginDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
addClassesDirectory(File classesDir) |
void |
addLibDirectory(File libDir) |
void |
addURL(URL url) |
PluginConfig |
getConfig() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
boolean |
isStarted() |
Class |
loadClass(String className) |
Class |
loadClass(String name,
boolean resolve) |
void |
setConfig(PluginConfig config) |
void |
start() |
void |
stop() |
String |
toString() |
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, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public PluginClassLoader()
public PluginClassLoader(ClassLoader parent)
public PluginClassLoader(ClassLoader parent, File sharedDirectory, File pluginDirectory) throws MalformedURLException
MalformedURLException
public void addClassesDirectory(File classesDir) throws MalformedURLException
MalformedURLException
public void addLibDirectory(File libDir) throws MalformedURLException
MalformedURLException
public Class loadClass(String className) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public void addURL(URL url)
addURL
in class URLClassLoader
public Class loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public URL getResource(String name)
getResource
in class ClassLoader
public Enumeration<URL> getResources(String name) throws IOException
getResources
in class ClassLoader
IOException
public PluginConfig getConfig()
public void setConfig(PluginConfig config)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.