edu.rice.cs.util.classloader
Class ToolsJarClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--java.security.SecureClassLoader
              |
              +--java.net.URLClassLoader
                    |
                    +--edu.rice.cs.util.classloader.ToolsJarClassLoader

public class ToolsJarClassLoader
extends URLClassLoader

A class loader that tries to load classes from tools.jar. It will never delegate to the system loader. NOTE: I am not sure if this loader will work perfectly correctly if you use loadClass. Currently its purpose is to be used from StickyClassLoader, which just needs getResource.

Version:
$Id: ToolsJarClassLoader.java,v 1.4 2002/02/08 14:22:22 brianstoler Exp $

Inner classes inherited from class java.net.URLClassLoader
URLClassLoader.ClassFinder
 
Inner classes inherited from class java.lang.ClassLoader
ClassLoader.NativeLibrary
 
Fields inherited from class java.net.URLClassLoader
acc, loader, ucp
 
Fields inherited from class java.security.SecureClassLoader
debug, initialized, pdcache
 
Fields inherited from class java.lang.ClassLoader
bootstrapClassPath, classes, defaultDomain, defaultPermissions, getClassLoaderPerm, loadedLibraryNames, nativeLibraries, nativeLibraryContext, nocerts, package2certs, packages, parent, scl, sclSet, sys_paths, systemNativeLibraries, usr_paths
 
Constructor Summary
ToolsJarClassLoader()
           
 
Method Summary
private static URL[] _getURLs()
           
 URL getResource(String name)
          Gets the requested resource, bypassing the parent classloader.
 
Methods inherited from class java.net.URLClassLoader
addURL, defineClass, definePackage, findClass, findResource, findResources, getPermissions, getURLs, isSealed, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
, check, defineClass, getProtectionDomain
 
Methods inherited from class java.lang.ClassLoader
addClass, checkCerts, checkPackageAccess, compareCerts, copyFrom, defineClass, defineClass, defineClass, defineClass0, definePackage, findBootstrapClass, findBootstrapClass0, findLibrary, findLoadedClass, findNative, findSystemClass, getBootstrapClassPath, getBootstrapResource, getBootstrapResources, getCallerClassLoader, getDefaultDomain, getGetClassLoaderPerm, getPackage, getPackages, getParent, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, initializePath, isAncestor, loadClass, loadClass, loadClassInternal, loadLibrary, loadLibrary0, removeSystemClassLoader, resolveClass, resolveClass0, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ToolsJarClassLoader

public ToolsJarClassLoader()
Method Detail

_getURLs

private static URL[] _getURLs()

getResource

public URL getResource(String name)
Gets the requested resource, bypassing the parent classloader.
Overrides:
getResource in class ClassLoader