testsgen
Class LocalClassLoader

java.lang.Object
  |
  +--java.lang.ClassLoader
        |
        +--java.security.SecureClassLoader
              |
              +--java.net.URLClassLoader
                    |
                    +--testsgen.LocalClassLoader

public class LocalClassLoader
extends java.net.URLClassLoader

LocalClassLoader.java implements loading classes given in command line classpath. Because it is impossible to set classpath for application ran with command: java -jar app.jar there is need for loading additional classes by hand. This class provides comfortable methods for performing this actions.

Created: Wed Dec 5 23:44:03 2001

Version:
$Revision: 1.6 $
Author:
Artur Hefczyc

Constructor Summary
LocalClassLoader(java.net.URL[] urls)
           
 
Method Summary
 void addURL(java.net.URL url)
           
 java.lang.Class findClass(java.lang.String name)
           
static LocalClassLoader getInstance()
           
 
Methods inherited from class java.net.URLClassLoader
definePackage, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass
 
Methods inherited from class java.lang.ClassLoader
defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalClassLoader

public LocalClassLoader(java.net.URL[] urls)
Method Detail

addURL

public void addURL(java.net.URL url)
Overrides:
addURL in class java.net.URLClassLoader

findClass

public java.lang.Class findClass(java.lang.String name)
                          throws java.lang.ClassNotFoundException
Overrides:
findClass in class java.net.URLClassLoader

getInstance

public static LocalClassLoader getInstance()


Copyright GNU, wttools developers Team.