org.modeshape.common.util
Class DelegatingClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.modeshape.common.util.DelegatingClassLoader
public final class DelegatingClassLoader
- extends URLClassLoader
Class loader which contains a list of classloaders to which it delegates each operation. If none of the delegates are able
to perform the operation, it delegates to the super-class( URLClassLoader
) which has most of the classloader methods
properly implemented.
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingClassLoader
public DelegatingClassLoader(ClassLoader parent,
List<? extends ClassLoader> delegates)
findClass
protected Class<?> findClass(String name)
throws ClassNotFoundException
- Overrides:
findClass
in class URLClassLoader
- Throws:
ClassNotFoundException
findResource
public URL findResource(String name)
- Overrides:
findResource
in class URLClassLoader
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.