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