|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.gargoylesoftware.base.util.ProxyUtil
A collection of utility methods dealing with proxy objects
| Method Summary | |
static Object |
createProxy(Class clazz)
Create a proxy object that implements the interface specified by 'clazz'. |
static Object |
createProxy(Class clazz,
Object[][] args)
Create a proxy object that implements the interface specified by 'clazz'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Object createProxy(Class clazz)
clazz - The interface that the proxy will support
public static Object createProxy(Class clazz,
Object[][] args)
final Object args[][] = {
{"getAutoCommit", Boolean.TRUE},
{"getCatalog", "foobar"}
};
final Connection connection = ProxyUtil.createProxy(Connection.class, args);
Calling getAutoCommit() on this object will return true. Calling getCatalog()
on this object will return "foobar". Calling any other method will return null.
clazz - The interface that will be supported by the generated proxyargs - methodname/object pairs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||