|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ClassLoader | +--java.security.SecureClassLoader | +--java.net.URLClassLoader | +--testsgen.LocalClassLoader
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
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 |
public LocalClassLoader(java.net.URL[] urls)
Method Detail |
public void addURL(java.net.URL url)
addURL
in class java.net.URLClassLoader
public java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.net.URLClassLoader
public static LocalClassLoader getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |