public class ProxyUtil extends JdkProxyUtil
| Constructor and Description |
|---|
ProxyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ProxyEngine |
getEngine()
获取动态代理引擎
|
static <T> T |
proxy(T target,
Aspect aspect)
使用切面代理对象
|
static <T> T |
proxy(T target,
Class<? extends Aspect> aspectClass)
使用切面代理对象
|
isCglibProxy, isCglibProxyClass, isJdkProxy, isJdkProxyClass, isProxy, isProxyClass, newProxyInstance, newProxyInstancepublic static ProxyEngine getEngine()
ProxyEnginepublic static <T> T proxy(T target,
Class<? extends Aspect> aspectClass)
T - 切面对象类型target - 目标对象aspectClass - 切面对象类public static <T> T proxy(T target,
Aspect aspect)
T - 被代理对象类型target - 被代理对象aspect - 切面对象Copyright © 2025. All rights reserved.