|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.proxy.compiler.ProxyImplementationFactory
Factory to create the bytecode implementation of various methods required by the ProxyCompiler.
Constructor Summary | |
ProxyImplementationFactory(String superClassName,
String proxyClassName,
org.apache.bcel.generic.ClassGen cg)
Creates a new ProxyImplementationFactory instance. |
Method Summary | |
org.apache.bcel.classfile.Method |
createConstructor()
generate an implementation of |
org.apache.bcel.classfile.Method |
createGetInvocationHandler()
generate an implementation of |
org.apache.bcel.classfile.Method |
createGetTargetTypes()
generate an implementation of |
org.apache.bcel.classfile.Field |
createInvocationHandlerField()
generate a field declaration of the form... |
org.apache.bcel.classfile.Method |
createProxyMethod(String name,
int methodNum,
org.apache.bcel.generic.Type rType,
org.apache.bcel.generic.Type[] pTypes,
String[] exceptionNames)
generate an implementation of... |
org.apache.bcel.classfile.Field |
createRuntimeField()
generate a field declaration of the form... |
org.apache.bcel.classfile.Method |
createToString()
generate an implementation of |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProxyImplementationFactory(String superClassName, String proxyClassName, org.apache.bcel.generic.ClassGen cg)
ProxyImplementationFactory
instance.
superClassName
- a String
valueproxyClassName
- a String
valuecg
- a ClassGen
valueMethod Detail |
public org.apache.bcel.classfile.Method createGetInvocationHandler()
public InvocationHandler getInvocationHandler() {
return this.invocationHandler;
}
public org.apache.bcel.classfile.Method createGetTargetTypes()
public Class[] getTargetTypes {
return this.invocationHandler.copyTargetTypes();
}
public org.apache.bcel.classfile.Method createToString()
public String toString() {
return "ProxyTarget[" + invocationHandler + "]";
}
public org.apache.bcel.classfile.Method createConstructor()
public (InvocationHandler h) { this.invocationHandler = h; }
public org.apache.bcel.classfile.Method createProxyMethod(String name, int methodNum, org.apache.bcel.generic.Type rType, org.apache.bcel.generic.Type[] pTypes, String[] exceptionNames)
public ( p0, p1, ...) throws e0, e1 ... { return runtme.invoke(invocatioHandler, , new Object[]{boxed p0, boxed p1, ...)}; }
public org.apache.bcel.classfile.Field createInvocationHandlerField()
private InvocationHandler invocationHandler;
public org.apache.bcel.classfile.Field createRuntimeField()
public static Runtime runtime;
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |