|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.framework.AopProxyUtils
public abstract class AopProxyUtils
Miscellaneous utilities for AOP proxy users and AOP proxy implementations. Mainly for internal use within the framework.
See AopUtils for a collection of generic AOP utility methods which do not depend on the AOP framework itself.
AopUtils
Constructor Summary | |
---|---|
AopProxyUtils()
|
Method Summary | |
---|---|
static Class[] |
completeProxiedInterfaces(AdvisedSupport advised)
Get complete set of interfaces to proxy. |
static boolean |
equalsAdvisors(AdvisedSupport a,
AdvisedSupport b)
Check equality of the advisors behind the given AdvisedSupport objects. |
static boolean |
equalsInProxy(AdvisedSupport a,
AdvisedSupport b)
Check equality of the proxies behind the given AdvisedSupport objects. |
static boolean |
equalsProxiedInterfaces(AdvisedSupport a,
AdvisedSupport b)
Check equality of the proxied interfaces behind the given AdvisedSupport objects. |
static Class |
getTargetClass(Object proxy)
Return the target class of the given bean instance. |
static Class[] |
proxiedUserInterfaces(Object proxy)
Extract the user-specified interfaces that the given proxy implements, i.e. all non-Advised interfaces that the proxy implements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AopProxyUtils()
Method Detail |
---|
public static Class getTargetClass(Object proxy)
Returns the target class for an AOP proxy and the plain bean class else.
proxy
- the instance to check (might be an AOP proxy)
Advised.getTargetSource()
,
TargetSource.getTargetClass()
public static Class[] completeProxiedInterfaces(AdvisedSupport advised)
public static Class[] proxiedUserInterfaces(Object proxy)
proxy
- the proxy to analyze (usually a JDK dynamic proxy)
null
or empty)Advised
public static boolean equalsInProxy(AdvisedSupport a, AdvisedSupport b)
public static boolean equalsProxiedInterfaces(AdvisedSupport a, AdvisedSupport b)
public static boolean equalsAdvisors(AdvisedSupport a, AdvisedSupport b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |