org.apache.catalina.loader
Class StandardClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.apache.catalina.loader.StandardClassLoader
All Implemented Interfaces:
StandardClassLoaderMBean

public class StandardClassLoader
extends java.net.URLClassLoader
implements StandardClassLoaderMBean

Subclass implementation of java.net.URLClassLoader that knows how to load classes from disk directories, as well as local and remote JAR files. It also implements the Reloader interface, to provide automatic reloading support to the associated loader.

In all cases, URLs must conform to the contract specified by URLClassLoader - any URL that ends with a "/" character is assumed to represent a directory; all other URLs are assumed to be the address of a JAR file.

IMPLEMENTATION NOTE - Local repositories are searched in the order they are added via the initial constructor and/or any subsequent calls to addRepository().

IMPLEMENTATION NOTE - At present, there are no dependencies from this class to any other Catalina class, so that it could be used independently.

Version:
$Revision: 303071 $ $Date: 2004-08-05 12:54:43 +0200 (jeu., 05 août 2004) $
Author:
Craig R. McClanahan, Remy Maucherat

Constructor Summary
StandardClassLoader(java.net.URL[] repositories)
           
StandardClassLoader(java.net.URL[] repositories, java.lang.ClassLoader parent)
           
 
Method Summary
 
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

StandardClassLoader

public StandardClassLoader(java.net.URL[] repositories)

StandardClassLoader

public StandardClassLoader(java.net.URL[] repositories,
                           java.lang.ClassLoader parent)


Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.