org.mbari.siam.utils
Class CachingClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.mbari.siam.utils.CachingClassLoader

public class CachingClassLoader
extends java.lang.ClassLoader

Author:
brian

Constructor Summary
CachingClassLoader()
           
CachingClassLoader(java.lang.ClassLoader parent)
          Creates a new instance of CachingClassLoader
 
Method Summary
protected  java.lang.Class findClass(java.lang.String name)
           
protected  java.lang.Class findClass(java.lang.String name, java.net.URL codebase, boolean cacheIt)
          Attempte to fetch a class from a given URL
 java.lang.Class loadClass(java.lang.String name)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, 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

CachingClassLoader

public CachingClassLoader(java.lang.ClassLoader parent)
Creates a new instance of CachingClassLoader


CachingClassLoader

public CachingClassLoader()
Method Detail

loadClass

public java.lang.Class loadClass(java.lang.String name)
                          throws java.lang.ClassNotFoundException
Overrides:
loadClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Overrides:
findClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException

findClass

protected java.lang.Class findClass(java.lang.String name,
                                    java.net.URL codebase,
                                    boolean cacheIt)
Attempte to fetch a class from a given URL

Parameters:
name - The name of the class to fetch
codebase - The URL location that is the root of the classpath to search
cacheIt - If true the classes fetched will be cached. If false then the classes will not be cached.


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.