org.jppf.classloader
Class NonDelegatingClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.jppf.classloader.NonDelegatingClassLoader

public class NonDelegatingClassLoader
extends URLClassLoader

Author:
Laurent Cohen

Constructor Summary
NonDelegatingClassLoader(URL[] urls, ClassLoader parent)
          Initialize this class loader with the specified urls and parent.
 
Method Summary
 Class<?> loadClassDirect(String name)
          Attempts to load a class directly from the parent.
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, 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

NonDelegatingClassLoader

public NonDelegatingClassLoader(URL[] urls,
                                ClassLoader parent)
Initialize this class loader with the specified urls and parent.

Parameters:
urls - an array of class path urls.
parent - the parent class loader.
Method Detail

loadClassDirect

public Class<?> loadClassDirect(String name)
                         throws ClassNotFoundException
Attempts to load a class directly from the parent.

Parameters:
name - the name of the class to load.
Returns:
the correpsonding class.
Throws:
ClassNotFoundException - if the class could not be loaded.


Copyright © 2005-2010 JPPF Team.