| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createProxy(Class<T> targetInterface,
InvocationHandler handler)
Helper method to simplify creation and casting of a proxy instance for a single interface.
|
public static <T> T createProxy(Class<T> targetInterface, InvocationHandler handler)
T - target interfacetargetInterface - interface to proxyhandler - an invocation handlerCopyright © 2004–2014 Paul Ferraro. All rights reserved.