public final class ProxyUtils extends Object
| 构造器和说明 |
|---|
ProxyUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,H extends InvocationHandler & org.springframework.cglib.proxy.InvocationHandler> |
create(H invocationHandler,
Class<?> cls) |
static <T> T |
create(InvocationHandler invocationHandler,
Class<?>... interfaces)
Creates proxy instance based jdk
|
static <T> T |
create(org.springframework.cglib.proxy.InvocationHandler invocationHandler,
Class<?> superClass)
Creates proxy instance based cglib
需要默认的无参构造函数
|
static Object |
getTargetObject(Object object)
Returns the proxy target object
|
public static <T> T create(InvocationHandler invocationHandler, Class<?>... interfaces)
T - the interface typeinvocationHandler - the jdk invocation handlerinterfaces - the interface class arraypublic static <T> T create(org.springframework.cglib.proxy.InvocationHandler invocationHandler,
Class<?> superClass)
需要默认的无参构造函数
T - the super class typeinvocationHandler - the spring cglib invocation handlersuperClass - the super classpublic static <T,H extends InvocationHandler & org.springframework.cglib.proxy.InvocationHandler> T create(H invocationHandler, Class<?> cls)
Copyright © 2025. All rights reserved.