|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
org.codehaus.groovy.runtime.ReflectorLoader
public class ReflectorLoader
Reflector creation helper. This class is used to define the Refloctor classes. For each ClassLoader such a Loader will be created by the MetaClass. The only special about this loader is, that it knows the class Reflector, which is the base class of all runtime created Reflectors.
| Constructor Summary | |
|---|---|
ReflectorLoader(ClassLoader parent)
creates a RelfectorLoader. |
|
| Method Summary | |
|---|---|
Class |
defineClass(String name,
byte[] bytecode,
ProtectionDomain domain)
helper method to define Reflector classes |
protected Class |
findClass(String name)
returns the Reflector class. |
Class |
getLoadedClass(String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReflectorLoader(ClassLoader parent)
parent - the parent loader. This should never be null!| Method Detail |
|---|
protected Class findClass(String name)
throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundException - if the name is not matching ReflectorReflector
public Class defineClass(String name,
byte[] bytecode,
ProtectionDomain domain)
name - of the Reflectorbytecode - the bytecodedomain - the protection domain
public Class getLoadedClass(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||