public class ProxyClassUtils extends Object
| Constructor and Description |
|---|
ProxyClassUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIsProxy(Object proxy)
检查对象是否为代理对象
|
static org.springframework.aop.framework.AdvisedSupport |
getAopCglibProxyAdvised(Object proxy)
获取aop cglib dynamic proxy代理的切面对象
|
static org.springframework.aop.framework.AdvisedSupport |
getAopJdkDynamicProxyAdvised(Object proxy)
获取aop jdk dynamic proxy代理的切面对象
|
static Class<?>[] |
getAopProxyInterfaces(org.springframework.aop.framework.AdvisedSupport advisedSupport)
获取aop proxy代理的class/interface
|
static Class<?> |
getClass(Object proxy)
获取代理对象代理的class/interface
|
static Class<?>[] |
getClasses(Object proxy)
获取代理对象代理的class/interface
|
static Class<?>[] |
getJdkProxyInterfaces(Object proxy)
获取jdk proxy代理的interface
|
public static boolean checkIsProxy(Object proxy)
proxy - 对象public static Class<?> getClass(Object proxy)
proxy - 代理对象public static Class<?>[] getClasses(Object proxy)
proxy - 代理对象public static org.springframework.aop.framework.AdvisedSupport getAopCglibProxyAdvised(Object proxy)
proxy - 代理对象public static org.springframework.aop.framework.AdvisedSupport getAopJdkDynamicProxyAdvised(Object proxy)
proxy - 代理对象public static Class<?>[] getAopProxyInterfaces(org.springframework.aop.framework.AdvisedSupport advisedSupport)
advisedSupport - 代理的切面对象Copyright © 2018–2021. All rights reserved.