| java.lang.Object org.jboss.proxy.compiler.ProxyImplementationFactory
ProxyImplementationFactory | public class ProxyImplementationFactory (Code) | | Factory to create the bytecode implementation of various methods
required by the ProxyCompiler.
version: $Revision: 57209 $ author: Neale Swinnerton author: Jason Dillon |
ProxyImplementationFactory | public ProxyImplementationFactory(String superClassName, String proxyClassName, ClassGen cg)(Code) | | Creates a new ProxyImplementationFactory instance.
Parameters: superClassName - a String value Parameters: proxyClassName - a String value Parameters: cg - a ClassGen value |
createConstructor | public Method createConstructor()(Code) | | generate an implementation of
public (InvocationHandler h) {
this.invocationHandler = h;
}
the method |
createGetInvocationHandler | public Method createGetInvocationHandler()(Code) | | generate an implementation of
public InvocationHandler getInvocationHandler() {
return this.invocationHandler;
}
|
createGetTargetTypes | public Method createGetTargetTypes()(Code) | | generate an implementation of
public Class[] getTargetTypes {
return this.invocationHandler.copyTargetTypes();
}
the method |
createInvocationHandlerField | public Field createInvocationHandlerField()(Code) | | generate a field declaration of the form...
private InvocationHandler invocationHandler;
the method |
createProxyMethod | public Method createProxyMethod(String name, int methodNum, Type rType, Type[] pTypes, String[] exceptionNames)(Code) | | generate an implementation of...
public ( p0, p1, ...)
throws e0, e1 ...
{
return runtme.invoke(invocatioHandler, ,
new Object[]{boxed p0, boxed p1, ...)};
}
the method |
createRuntimeField | public Field createRuntimeField()(Code) | | generate a field declaration of the form...
public static Runtime runtime;
the method |
createToString | public Method createToString()(Code) | | generate an implementation of
public String toString() {
return "ProxyTarget[" + invocationHandler + "]";
}
the method |
|
|