org.kuali.rice.kew.plugin
Class PluginClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.kuali.rice.kew.plugin.PluginClassLoader
- All Implemented Interfaces:
- Lifecycle
public class PluginClassLoader
- extends URLClassLoader
- implements Lifecycle
A simple class loader implementation which looks at itself before delegating to its parent.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
PluginClassLoader
public PluginClassLoader()
PluginClassLoader
public PluginClassLoader(ClassLoader parent)
PluginClassLoader
public PluginClassLoader(ClassLoader parent,
File sharedDirectory,
File pluginDirectory)
throws MalformedURLException
- Throws:
MalformedURLException
addClassesDirectory
public void addClassesDirectory(File classesDir)
throws MalformedURLException
- Throws:
MalformedURLException
addLibDirectory
public void addLibDirectory(File libDir)
throws MalformedURLException
- Throws:
MalformedURLException
loadClass
public Class loadClass(String className)
throws ClassNotFoundException
- Overrides:
loadClass
in class ClassLoader
- Throws:
ClassNotFoundException
addURL
public void addURL(URL url)
- Overrides:
addURL
in class URLClassLoader
loadClass
public Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
- Overrides:
loadClass
in class ClassLoader
- Throws:
ClassNotFoundException
getResource
public URL getResource(String name)
- Overrides:
getResource
in class ClassLoader
getResources
public Enumeration<URL> getResources(String name)
throws IOException
- Overrides:
getResources
in class ClassLoader
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
getConfig
public PluginConfig getConfig()
setConfig
public void setConfig(PluginConfig config)
start
public void start()
- Specified by:
start
in interface Lifecycle
stop
public void stop()
- Specified by:
stop
in interface Lifecycle
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface Lifecycle
Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.