|
Web Site | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
org.codehaus.janino.ByteArrayClassLoader
public class ByteArrayClassLoader
This ClassLoader allows for the loading of a set of JavaTM classes
provided in class file format.
| Constructor Summary | |
|---|---|
ByteArrayClassLoader(java.util.Map classes)
The given Map of classes must not be modified afterwards. |
|
ByteArrayClassLoader(java.util.Map classes,
java.lang.ClassLoader parent)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
An object is regarded equal to this iff
It is also an instance of ByteArrayClassLoader
Both have the same parent ClassLoader
Exactly the same classes (name, bytecode) were added to both
Roughly speaking, equal ByteArrayClassLoaders will return functionally identical
Classes on ClassLoader.loadClass(java.lang.String). |
protected java.lang.Class |
findClass(java.lang.String name)
Implements ClassLoader.findClass(String). |
int |
hashCode()
|
| 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayClassLoader(java.util.Map classes)
Map of classes must not be modified afterwards.
classes - String className => byte[] data
public ByteArrayClassLoader(java.util.Map classes,
java.lang.ClassLoader parent)
ByteArrayClassLoader(Map)| Method Detail |
|---|
protected java.lang.Class findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
ClassLoader.findClass(String).
Notice that, although nowhere documented, no more than one thread at a time calls this
method, because ClassLoader.loadClass(java.lang.String) is
synchronized.
findClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundExceptionpublic boolean equals(java.lang.Object o)
this iff
ByteArrayClassLoader
ClassLoader
ByteArrayClassLoaders will return functionally identical
Classes on ClassLoader.loadClass(java.lang.String).
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
Web Site | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||