ModeShape Distribution 3.0.0.Beta4

org.modeshape.common.util
Class DelegatingClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              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 java.net.URLClassLoader
addURL, definePackage, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
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

DelegatingClassLoader

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

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

ModeShape Distribution 3.0.0.Beta4

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