public final class ProxyUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createProxy(Class<T> clazz,
InvocationHandler invocationHandler)
Creates a proxy class to a given interface clazz supplied with invocation handler.
|
static <T> T |
createProxyFromAbstract(Class<T> clazz,
Class[] paramTypes,
Object[] args,
InvocationHandler invocationHandler)
Creates a proxy class to a given abstract clazz supplied with invocation handler for
un-implemented/abstrat methods.
|
public static <T> T createProxy(Class<T> clazz, InvocationHandler invocationHandler)
T - Class type.clazz - Proxy to class.invocationHandler - Invocation handler.public static <T> T createProxyFromAbstract(Class<T> clazz, Class[] paramTypes, Object[] args, InvocationHandler invocationHandler)
T - Class type.clazz - Proxy to class.paramTypes - Ctor param types.args - Ctor args.invocationHandler - Invocation handler.Copyright © 2020. All rights reserved.