public class ProxyUtil
extends Object
| Constructor and Description |
|---|
ProxyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends InvocationHandler> |
fetchInvocationHandler(Object proxy,
Class<T> clazz) |
static InvocationHandler |
getInvocationHandler(Object proxy) |
static Class<?> |
getProxyClass(ClassLoader classLoader,
Class<?>... interfaceClasses) |
static <T> Function<InvocationHandler,T> |
getProxyProviderFunction(Class<?>... interfaceClasses) |
static boolean |
isProxyClass(Class<?> clazz) |
static <T> T |
newDelegateProxyInstance(ClassLoader classLoader,
Class<T> interfaceClass,
Object delegateObject,
T defaultObject) |
static Object |
newProxyInstance(ClassLoader classLoader,
Class<?>[] interfaces,
InvocationHandler invocationHandler) |
public static <T extends InvocationHandler> T fetchInvocationHandler(Object proxy,
Class<T> clazz)
public static InvocationHandler getInvocationHandler(Object proxy)
public static Class<?> getProxyClass(ClassLoader classLoader,
Class<?>... interfaceClasses)
public static <T> Function<InvocationHandler,T> getProxyProviderFunction(Class<?>... interfaceClasses)
public static boolean isProxyClass(Class<?> clazz)
public static <T> T newDelegateProxyInstance(ClassLoader classLoader,
Class<T> interfaceClass,
Object delegateObject,
T defaultObject)
public static Object newProxyInstance(ClassLoader classLoader,
Class<?>[] interfaces,
InvocationHandler invocationHandler)