public class SpringProxyUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?>[] |
findInterfaces(Object proxy) |
static Class<?> |
findTargetClass(Object proxy)
Find target class class.
|
static 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 Class<?>[] findInterfaces(Object proxy) throws Exception
Exceptionpublic static 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 © 2025. All rights reserved.