public class ReflectorLoader extends ClassLoader
| Constructor and Description | 
|---|
ReflectorLoader(ClassLoader parent)
creates a ReflectorLoader. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Class | 
defineClass(String name,
           byte[] bytecode,
           ProtectionDomain domain)
helper method to define Reflector classes. 
 | 
protected Class | 
findClass(String name)
Tries to find a Groovy class. 
 | 
Class | 
getLoadedClass(String name)
try to load one of the defined Reflector classes by name. 
 | 
protected Class | 
loadClass(String name,
         boolean resolve)
Loads a class per name. 
 | 
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic ReflectorLoader(ClassLoader parent)
parent - the parent loader. This should never be null!protected Class findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundException - if not foundprotected Class loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoadername - of the class to loadresolve - is true if the class should be resolvedClassNotFoundExceptionReflector, 
ClassLoader.loadClass(String, boolean)public Class defineClass(String name, byte[] bytecode, ProtectionDomain domain)
name - of the Reflectorbytecode - the bytecodedomain - the protection domain