|
ref_send API 2.17 defensive programming in Java |
|||||||||
| 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 java.lang.reflect.InvocationHandler |
getHandler(java.lang.reflect.Proxy proxy)
Extract the InvocationHandler from a Proxy |
static boolean |
isImplementable(java.lang.Class<?> type)
Returns true if the argument is an interface that can be
implemented by a Proxy using proxy(). |
static java.lang.Object |
proxy(java.lang.reflect.InvocationHandler handler,
java.lang.Class<?>... interfaces)
Constructs a dynamic proxy. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.reflect.InvocationHandler getHandler(java.lang.reflect.Proxy proxy)
InvocationHandler from a Proxy
proxy - proxy instance
public static java.lang.Object proxy(java.lang.reflect.InvocationHandler handler,
java.lang.Class<?>... interfaces)
throws java.lang.ClassCastException
handler - invocation handlerinterfaces - each implemented interface
java.lang.ClassCastException - a restriction on the
types is violated
java.lang.NullPointerException - an argument is nullpublic static boolean isImplementable(java.lang.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
|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.