ModeShape Distribution 3.0.0.Beta4

Class DelegatingClassLoader

  extended by java.lang.ClassLoader
      extended by
          extended by
              extended by 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.

Constructor Summary
DelegatingClassLoader(ClassLoader parent, List<? extends ClassLoader> delegates)
Method Summary
protected  Class<?> findClass(String name)
 URL findResource(String name)
Methods inherited from class
addURL, definePackage, findResources, getPermissions, getURLs, newInstance, newInstance
Methods inherited from class
defineClass, defineClass
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

Constructor Detail


public DelegatingClassLoader(ClassLoader parent,
                             List<? extends ClassLoader> delegates)
Method Detail


protected Class<?> findClass(String name)
                      throws ClassNotFoundException
findClass in class URLClassLoader


public URL findResource(String name)
findResource in class URLClassLoader

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.