1 16 package net.sf.cglib.proxy; 17 18 import java.util.List ; 19 import net.sf.cglib.core.*; 20 21 interface CallbackGenerator 22 { 23 void generate(ClassEmitter ce, Context context, List methods) throws Exception ; 24 void generateStatic(CodeEmitter e, Context context, List methods) throws Exception ; 25 26 interface Context 27 { 28 ClassLoader getClassLoader(); 29 CodeEmitter beginMethod(ClassEmitter ce, MethodInfo method); 30 int getOriginalModifiers(MethodInfo method); 31 int getIndex(MethodInfo method); 32 void emitCallback(CodeEmitter ce, int index); 33 Signature getImplSignature(MethodInfo method); 34 } 35 } 36 | Popular Tags |