|
Smartproxy 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for proxy class generators. A proxy class generator is responsible for providing high level method to build a proxy class using BCEL. A typical proxy building using a proxy class generator is:
generator.init();
for each constructor:
generator.addConstructor(constructor);
for each method to proxify:
generator.addMethod(method);
bcelResult = generator.getJavaClass();
| 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. |
| Method Detail |
public void init()
public void addConstructor(Constructor constructor)
throws IllegalStateException
constructor -
IllegalStateException - init wasn't called previously.
public void addProxyMethod(Method method)
throws IllegalStateException
method -
IllegalStateException - init wasn't called previously.
public JavaClass getJavaClass()
throws IllegalStateException
IllegalStateException - init wasn't called previously.
|
Smartproxy 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||