Package org.springframework.aop.aspectj
Class AspectJAopUtils
- java.lang.Object
- org.springframework.aop.aspectj.AspectJAopUtils
public abstract class AspectJAopUtils extends Object
Utility methods for dealing with AspectJ advisors.- Since:
- 2.0
- Author:
- Adrian Colyer, Juergen Hoeller
Constructor Summary
Constructors Constructor Description AspectJAopUtils()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AspectJPrecedenceInformationgetAspectJPrecedenceInformationFor(Advisor anAdvisor)Return the AspectJPrecedenceInformation provided by this advisor or its advice.static booleanisAfterAdvice(Advisor anAdvisor)Returntrueif the advisor is a form of after advice.static booleanisBeforeAdvice(Advisor anAdvisor)Returntrueif the advisor is a form of before advice.
Constructor Detail
AspectJAopUtils
public AspectJAopUtils()
Method Detail
isBeforeAdvice
public static boolean isBeforeAdvice(Advisor anAdvisor)
Returntrueif the advisor is a form of before advice.
isAfterAdvice
public static boolean isAfterAdvice(Advisor anAdvisor)
Returntrueif the advisor is a form of after advice.
getAspectJPrecedenceInformationFor
@Nullable public static AspectJPrecedenceInformation getAspectJPrecedenceInformationFor(Advisor anAdvisor)
Return the AspectJPrecedenceInformation provided by this advisor or its advice. If neither the advisor nor the advice have precedence information, this method will returnnull.