|
Smartproxy 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.smartproxy.SimpleProxyClassGenerator
A proxy class generator used when the base and underlying interfaces are the same. This class generator use the following rules:
public returnType method(params)
{
return ((base interface)getUnderlying()).method(params);
}
or
public void method(params)
{
((base interface)getUnderlying()).method(params);
}
smart proxy class(params)
{
super(params);
}
| Method Summary | |
void |
addConstructor(Constructor constructor)
Add a new constructor to the proxy class. |
void |
addProxyMethod(Method method)
Add a new proxified method. |
JavaClass |
getJavaClass()
Get the BCEL class for the generated class. |
void |
init()
Initialize the object for a new class generation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public void init()
init in interface ProxyClassGenerator
public void addConstructor(Constructor constructor)
throws IllegalStateException
ProxyClassGenerator
addConstructor in interface ProxyClassGeneratorconstructor -
IllegalStateException - init wasn't called previously.
public void addProxyMethod(Method method)
throws IllegalStateException
ProxyClassGenerator
addProxyMethod in interface ProxyClassGeneratormethod -
IllegalStateException - init wasn't called previously.
public JavaClass getJavaClass()
throws IllegalStateException
getJavaClass in interface ProxyClassGeneratorIllegalStateException - init wasn't called previously.
|
Smartproxy 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||