javassist.tools.rmi
public class StubGenerator extends Object implements Translator
The proxy class for class A is as follows:
public class A implements Proxy, Serializable {
private ObjectImporter importer;
private int objectId;
public int _getObjectId() { return objectId; }
public A(ObjectImporter oi, int id) {
importer = oi; objectId = id;
}
... the same methods that the original class A declares ...
}
Instances of the proxy class is created by an
ObjectImporter object.
| Constructor Summary | |
|---|---|
| StubGenerator()
Constructs a stub-code generator. | |
| Method Summary | |
|---|---|
| boolean | isProxyClass(String name)
Returns true if the specified class is a proxy class
recorded by makeProxyClass().
|
| boolean | makeProxyClass(Class clazz)
Makes a proxy class. |
| void | onLoad(ClassPool pool, String classname)
Does nothing.
|
| void | start(ClassPool pool)
Initializes the object.
|
true if the specified class is a proxy class
recorded by makeProxyClass().
Parameters: name a fully-qualified class name
Parameters: clazz the class referenced through the proxy class.
Returns: false if the proxy class
has been already produced.
See Also: onLoad
See Also: start