|
||||||||||
| 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
public class 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(java.lang.Class<?> c)
Get an instance of ProxyInterfaceImplementor. |
|
| Method Summary | |
|---|---|
protected boolean |
buildConstructors()
Don't create the default constructors. |
protected java.lang.String |
implement(java.lang.reflect.Method method)
Implement this method as a proxy wrapper around the contained object. |
static void |
main(java.lang.String[] args)
Create a proxy class for the specified interface. |
protected java.lang.String |
preConstructors()
Create the instance variables and constructor for the proxy. |
protected java.lang.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(java.lang.Class<?> c)
c - the interface to be implemented
java.lang.NullPointerException - if the passed in class is null
java.lang.IllegalArgumentException - if the passed in class is not
an interface| Method Detail |
|---|
protected boolean buildConstructors()
buildConstructors in class InterfaceImplementorprotected java.lang.String preConstructors()
preConstructors in class InterfaceImplementorprotected java.lang.String preMethods()
preMethods in class InterfaceImplementorprotected java.lang.String implement(java.lang.reflect.Method method)
implement in class InterfaceImplementormethod - the method to implement
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||