|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.util.InterfaceImplementor
net.spy.util.ProxyInterfaceImplementor
Create static proxy implementations of interfaces.
This class is similiar to InterfaceImplementor, except it's used
to create static proxy interface implementations which may be extended
to override specific functionality (otherwise, the proxy would be kind
of worthless, wouldn't it?).
| Constructor Summary | |
ProxyInterfaceImplementor(Class c)
Get an instance of ProxyInterfaceImplementor. |
|
| Method Summary | |
protected boolean |
buildConstructors()
Don't create the default constructors. |
protected String |
implement(Method method)
Implement this method as a proxy wrapper around the contained object. |
static void |
main(String[] args)
Create a proxy class for the specified interface. |
protected String |
preConstructors()
Create the instance variables and constructor for the proxy. |
protected String |
preMethods()
Before the generated methods, include methods for accessing and setting the proxied object. |
| Methods inherited from class net.spy.util.InterfaceImplementor |
getDocLink, getDocLink, getInterface, getOutClassName, getOutPackageName, getSignature, getSignature, getSuperclass, makeSource, setOutputClass, setSuperClass, writeSourceToFile |
| Methods inherited from class net.spy.SpyObject |
getLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProxyInterfaceImplementor(Class c)
c - the interface to be implemented
NullPointerException - if the passed in class is null
IllegalArgumentException - if the passed in class is not
an interface| Method Detail |
protected boolean buildConstructors()
buildConstructors in class InterfaceImplementorprotected String preConstructors()
preConstructors in class InterfaceImplementorprotected String preMethods()
preMethods in class InterfaceImplementorprotected String implement(Method method)
implement in class InterfaceImplementormethod - the method to implement
public static void main(String[] args)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||