Package org.springframework.aop.aspectj
Class AspectJProxyUtils
- java.lang.Object
- org.springframework.aop.aspectj.AspectJProxyUtils
public abstract class AspectJProxyUtils extends Object
Utility methods for working with AspectJ proxies.- Since:
- 2.0
- Author:
- Rod Johnson, Ramnivas Laddad
Constructor Summary
Constructors Constructor Description AspectJProxyUtils()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
makeAdvisorChainAspectJCapableIfNecessary(List<Advisor> advisors)
Add special advisors if necessary to work with a proxy chain that contains AspectJ advisors.
Constructor Detail
AspectJProxyUtils
public AspectJProxyUtils()
Method Detail
makeAdvisorChainAspectJCapableIfNecessary
public static boolean makeAdvisorChainAspectJCapableIfNecessary(List<Advisor> advisors)
Add special advisors if necessary to work with a proxy chain that contains AspectJ advisors. 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
- Advisors available- Returns:
true
if any specialAdvisors
were added, otherwisefalse
.