wt.boot
Class WTJarClassLoader_default
java.lang.Object
java.lang.ClassLoader
wt.boot.WTJarClassLoader_default
- All Implemented Interfaces:
- JarClassLoader
- public final class WTJarClassLoader_default
- extends ClassLoader
- implements JarClassLoader
A class loader that that loads from a random access (local) JAR/ZIP file.
Nested classes inherited from class java.lang.ClassLoader |
|
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, 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 |
zipFiles
private ZipFile[] zipFiles
codebase
private URL codebase
resourceUrl
private URL resourceUrl
verbose
private boolean verbose
captureFile
private PrintWriter captureFile
captureFileStackTrace
private Throwable captureFileStackTrace
showMissingFiles
private boolean showMissingFiles
WTJarClassLoader_default
public WTJarClassLoader_default(ZipFile[] zip_files,
URL codebase,
URL resource_url,
boolean verbose)
loadClass
public Class loadClass(String class_name,
boolean resolve)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getResourceAsStream
public InputStream getResourceAsStream(String resource_name)
getResource
public URL getResource(String resource_name)
loadClass
private Class loadClass(String class_name,
URL url)
getResourceAsStream
private InputStream getResourceAsStream(String resource_name,
URL url)
getURLs
public URL[] getURLs()
preload
public void preload(String class_name)
throws ClassNotFoundException
- Specified by:
preload
in interface JarClassLoader
- Throws:
ClassNotFoundException
setCaptureFile
public void setCaptureFile(PrintWriter out,
boolean stack_trace)
- Specified by:
setCaptureFile
in interface JarClassLoader
setShowMissingFiles
public void setShowMissingFiles(boolean show_missing_files)
- Specified by:
setShowMissingFiles
in interface JarClassLoader
getJarFileNames
public String[] getJarFileNames()
- Specified by:
getJarFileNames
in interface JarClassLoader