public final class ProxyFactory extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createProxy(java.lang.Class<T> targetInterface,
java.lang.reflect.InvocationHandler handler)
Helper method to simplify creation and casting of a proxy instance for a single interface.
|
public static <T> T createProxy(java.lang.Class<T> targetInterface, java.lang.reflect.InvocationHandler handler)
T - target interfacetargetInterface - interface to proxyhandler - an invocation handler