|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader dk.netarkivet.common.utils.batch.ByteJarLoader
public class ByteJarLoader
ByteJarLoader is a ClassLoader that stores java classes in a map where the key to the map is the class name, and the value is the class stored as a byte array.
Field Summary | |
---|---|
(package private) java.util.Map<java.lang.String,byte[]> |
binaryData
The map, that holds the class data. |
(package private) org.apache.commons.logging.Log |
log
The log. |
Constructor Summary | |
---|---|
ByteJarLoader(java.io.File... files)
Constructor for the ByteLoader. |
Method Summary | |
---|---|
java.lang.Class |
findClass(java.lang.String className)
Lookup and return the Class with the given className. |
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, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
transient org.apache.commons.logging.Log log
java.util.Map<java.lang.String,byte[]> binaryData
Constructor Detail |
---|
public ByteJarLoader(java.io.File... files)
files
- An array of files, which are assumed to be jar-files, but
they need not have the extension .jarMethod Detail |
---|
public java.lang.Class findClass(java.lang.String className) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
className
- The name of the class to lookup
java.lang.ClassNotFoundException
- If the class could not be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |