| java.net.URLClassLoader org.apache.cocoon.servlet.ParanoidClassLoader
ParanoidClassLoader | public class ParanoidClassLoader extends URLClassLoader (Code) | | The ParanoidClassLoader reverses the search order for classes.
It checks this classloader before it checks its parent.
author: Berin Loritsch author: Sylvain Wallez version: CVS $Id: ParanoidClassLoader.java 30932 2004-07-29 17:35:38Z version: vgritsenko $ |
ParanoidClassLoader | public ParanoidClassLoader()(Code) | | Default constructor has no parents or initial URL s.
|
ParanoidClassLoader | public ParanoidClassLoader(ClassLoader parent)(Code) | | Alternate constructor to define a parent.
|
ParanoidClassLoader | public ParanoidClassLoader(URL[] urls)(Code) | | Alternate constructor to define initial URL s.
|
ParanoidClassLoader | public ParanoidClassLoader(URL[] urls, ClassLoader parent)(Code) | | Alternate constructor to define a parent and initial URL
s.
|
addDirectory | final public void addDirectory(File file) throws IOException(Code) | | Adds a new directory of class files.
Parameters: file - for jar or directory throws: IOException - |
addURL | public void addURL(URL url)(Code) | | Adds a new URL
|
getResource | final public URL getResource(String name)(Code) | | Gets a resource from this ClassLoader. If the
resource does not exist in this one, we check the parent.
Please note that this is the exact opposite of the
ClassLoader spec. We use it to work around
inconsistent class loaders from third party vendors.
Parameters: name - of resource |
loadClass | final public Class loadClass(String name, boolean resolve) throws ClassNotFoundException(Code) | | Loads the class from this ClassLoader. If the
class does not exist in this one, we check the parent. Please
note that this is the exact opposite of the
ClassLoader spec. We use it to work around
inconsistent class loaders from third party vendors.
Parameters: name - the name of the class Parameters: resolve - if true then resolve the class the resulting Class object exception: ClassNotFoundException - if the class could not be found |
newInstance | final public static URLClassLoader newInstance(URL[] urls)(Code) | | Extends URLClassLoader 's initialization methods so we
return a ParanoidClassLoad instead.
|
newInstance | final public static URLClassLoader newInstance(URL[] urls, ClassLoader parent)(Code) | | Extends URLClassLoader 's initialization methods so we
return a ParanoidClassLoad instead.
|
|
|