org.logicalcobwebs.cglib.reflect
Class MethodDelegate.Generator

java.lang.Object
  extended by org.logicalcobwebs.cglib.core.AbstractClassGenerator
      extended by org.logicalcobwebs.cglib.reflect.MethodDelegate.Generator
All Implemented Interfaces:
ClassGenerator
Enclosing class:
MethodDelegate

public static class MethodDelegate.Generator
extends AbstractClassGenerator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.logicalcobwebs.cglib.core.AbstractClassGenerator
AbstractClassGenerator.Source
 
Field Summary
private  java.lang.Class iface
           
private static Type METHOD_DELEGATE
           
private  java.lang.String methodName
           
private static Signature NEW_INSTANCE
           
private static AbstractClassGenerator.Source SOURCE
           
private  java.lang.Object target
           
private  java.lang.Class targetClass
           
 
Constructor Summary
MethodDelegate.Generator()
           
 
Method Summary
 MethodDelegate create()
           
protected  java.lang.Object firstInstance(java.lang.Class type)
           
 void generateClass(ClassVisitor v)
           
protected  java.lang.ClassLoader getDefaultClassLoader()
           
protected  java.lang.Object nextInstance(java.lang.Object instance)
           
 void setInterface(java.lang.Class iface)
           
 void setMethodName(java.lang.String methodName)
           
 void setTarget(java.lang.Object target)
           
 void setTargetClass(java.lang.Class targetClass)
           
 
Methods inherited from class org.logicalcobwebs.cglib.core.AbstractClassGenerator
create, getClassLoader, getClassName, setClassLoader, setNamePrefix, setNamingPolicy, setStrategy, setUseCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE

private static final AbstractClassGenerator.Source SOURCE

NEW_INSTANCE

private static final Signature NEW_INSTANCE

METHOD_DELEGATE

private static final Type METHOD_DELEGATE

target

private java.lang.Object target

targetClass

private java.lang.Class targetClass

methodName

private java.lang.String methodName

iface

private java.lang.Class iface
Constructor Detail

MethodDelegate.Generator

public MethodDelegate.Generator()
Method Detail

setTarget

public void setTarget(java.lang.Object target)

setTargetClass

public void setTargetClass(java.lang.Class targetClass)

setMethodName

public void setMethodName(java.lang.String methodName)

setInterface

public void setInterface(java.lang.Class iface)

getDefaultClassLoader

protected java.lang.ClassLoader getDefaultClassLoader()
Specified by:
getDefaultClassLoader in class AbstractClassGenerator

create

public MethodDelegate create()

firstInstance

protected java.lang.Object firstInstance(java.lang.Class type)
Specified by:
firstInstance in class AbstractClassGenerator

nextInstance

protected java.lang.Object nextInstance(java.lang.Object instance)
Specified by:
nextInstance in class AbstractClassGenerator

generateClass

public void generateClass(ClassVisitor v)
                   throws java.lang.NoSuchMethodException
Throws:
java.lang.NoSuchMethodException