public class SpringProxyUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Class<?>[] |
findInterfaces(Object proxy) |
static Class<?> |
findTargetClass(Object proxy)
Find target class class.
|
static org.springframework.aop.framework.AdvisedSupport |
getAdvisedSupport(Object proxy)
Gets advised support.
|
static Class<?>[] |
getAllInterfaces(Object bean)
get the all interfaces of bean, if the bean is null, then return empty array
|
protected static Class<?> |
getTargetClass(Object proxy)
Get the class type of the proxy target object, if hadn't a target object, return the interface of the proxy
|
static Class<?> |
getTargetInterface(Object proxy)
Get the target class , get the interface of its agent if it is a Proxy
|
static boolean |
isProxy(Object bean)
Is proxy boolean.
|
public static Class<?> findTargetClass(Object proxy) throws Exception
proxy - the proxyException - the exceptionpublic static org.springframework.aop.framework.AdvisedSupport getAdvisedSupport(Object proxy) throws Exception
proxy - the proxyException - the exceptionpublic static boolean isProxy(Object bean)
bean - the beanpublic static Class<?> getTargetInterface(Object proxy) throws Exception
proxy - the proxyException - the exceptionprotected static Class<?> getTargetClass(Object proxy) throws Exception
proxy - the proxyException - the exceptionCopyright © 2022 Seata. All rights reserved.