ProxyCodeGenerator
A code generator for class proxies.
| Methods |
| static String |
formatMethodCall(Method m, Object... args)
Format a method call, including arguments, for an exception message.
|
| static String |
formatMethodCall(Method m, Object... args)
Format a method call, including arguments, for an exception message.
Parameters:
m - the method
args - the arguments
Returns:
the formatted string
|
| static Class |
getClassProxy(Class c)
Generate a proxy class.
|
| static Class |
getClassProxy(Class c) throws ClassNotFoundException
Generate a proxy class. The returned class extends the given class.
Parameters:
c - the class to extend
Returns:
the proxy class
|
| static boolean |
isGenerated(Class c)
Check whether there is already a proxy class generated.
|
| static boolean |
isGenerated(Class c)
Check whether there is already a proxy class generated.
Parameters:
c - the class
Returns:
true if yes
|
| void |
generateStaticProxy(Class clazz)
Generate a class that implements all static methods of the given class,
but as non-static.
|
| void |
generateStaticProxy(Class clazz)
Generate a class that implements all static methods of the given class,
but as non-static.
Parameters:
clazz - the class to extend
|
|