|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.joe_e.reflect.Proxies
public final class Proxies
The dynamic proxy interface. This is a wrapper around Java's dynamic proxy
features provided by java.lang.reflect.Proxy.
| Method Summary | |
|---|---|
static InvocationHandler |
getHandler(Proxy proxy)
Extract the InvocationHandler from a Proxy |
static boolean |
isImplementable(Class<?> type)
Returns true if the argument is an interface that can be
implemented by a Proxy using proxy(). |
static Object |
proxy(InvocationHandler handler,
Class<?>... interfaces)
Constructs a dynamic proxy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static InvocationHandler getHandler(Proxy proxy)
InvocationHandler from a Proxy
proxy - proxy instance
public static Object proxy(InvocationHandler handler,
Class<?>... interfaces)
throws ClassCastException
handler - invocation handlerinterfaces - each implemented interface
ClassCastException - a restriction on the
types is violated
NullPointerException - an argument is nullpublic static boolean isImplementable(Class<?> type)
true if the argument is an interface that can be
implemented by a Proxy using proxy().
type - candidate interface
true if a Joe-E type, else false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||