|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
org.datanucleus.enhancer.EnhancerClassLoader
public final class EnhancerClassLoader
ClassLoader for newly defined classes. Parent classloader is the context classloader obtained during instantiation of this class
| Constructor Summary | |
|---|---|
EnhancerClassLoader()
|
|
EnhancerClassLoader(org.datanucleus.ClassLoaderResolver iDelegate)
|
|
| Method Summary | |
|---|---|
void |
defineClass(String fullClassName,
byte[] bytes,
org.datanucleus.ClassLoaderResolver clr)
Define a class in this ClassLoader. |
protected URL |
findResource(String name)
Overwrite to have an opportunity to find resources from the delegate ClassLoaderResolver |
Class |
loadClass(String name)
Overwrite to have an opportunity to load classes from the delegate ClassLoaderResolver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnhancerClassLoader()
public EnhancerClassLoader(org.datanucleus.ClassLoaderResolver iDelegate)
| Method Detail |
|---|
public void defineClass(String fullClassName,
byte[] bytes,
org.datanucleus.ClassLoaderResolver clr)
fullClassName - the class namebytes - the bytes representation of the classclr - the ClassLoaderResolver to load linked classes
public Class loadClass(String name)
throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionprotected URL findResource(String name)
findResource in class ClassLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||