Top Description Constructors Methods
org.springframework.aop.aspectj

public abstract Class AspectJProxyUtils

extends Object
Class Inheritance
Imports
java.util.List, org.springframework.aop.Advisor, .PointcutAdvisor, org.springframework.aop.interceptor.ExposeInvocationInterceptor, org.springframework.lang.Nullable, org.springframework.util.StringUtils

Utility methods for working with AspectJ proxies.
Authors
Rod Johnson, Ramnivas Laddad, Juergen Hoeller
Since
2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
isAspectJAdvice(Advisor
the Advisor to check
advisor
)

Determine whether the given Advisor contains an AspectJ advice.

pack-priv static boolean
public static boolean

Returns:

true if an ExposeInvocationInterceptor was added to the list, otherwise false
makeAdvisorChainAspectJCapableIfNecessary
(List<Advisor>
the advisors available
advisors
)

Add special advisors if necessary to work with a proxy chain that contains AspectJ advisors: concretely, ExposeInvocationInterceptor at the beginning of the list.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AspectJProxyUtilsback to summary
public AspectJProxyUtils()

Method Detail

isAspectJAdviceback to summary
private static boolean isAspectJAdvice(Advisor advisor)

Determine whether the given Advisor contains an AspectJ advice.

Parameters
advisor:Advisor

the Advisor to check

isVariableNameback to summary
pack-priv static boolean isVariableName(String name)
makeAdvisorChainAspectJCapableIfNecessaryback to summary
public static boolean makeAdvisorChainAspectJCapableIfNecessary(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.

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.

Parameters
advisors:List<Advisor>

the advisors available

Returns:boolean

true if an ExposeInvocationInterceptor was added to the list, otherwise false