public abstract class AspectJProxyUtils
extends java.lang.Object
Constructor and Description |
---|
AspectJProxyUtils() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
isAspectJAdvice(Advisor advisor)
Determine whether the given Advisor contains an AspectJ advice.
|
static boolean |
makeAdvisorChainAspectJCapableIfNecessary(java.util.List<Advisor> advisors)
Add special advisors if necessary to work with a proxy chain that contains AspectJ advisors:
concretely,
ExposeInvocationInterceptor at the beginning of the list. |
public static boolean makeAdvisorChainAspectJCapableIfNecessary(java.util.List<Advisor> advisors)
ExposeInvocationInterceptor
at the beginning of the list.
This will expose the current Spring AOP invocation (necessary for some AspectJ pointcut matching) and make available the current AspectJ JoinPoint. The call will have no effect if there are no AspectJ advisors in the advisor chain.
advisors
- the advisors availabletrue
if an ExposeInvocationInterceptor
was added to the list,
otherwise false
private static boolean isAspectJAdvice(Advisor advisor)
advisor
- the Advisor to check