Search in sources :

Example 1 with AspectJPointcutAdvisor

use of org.springframework.aop.aspectj.AspectJPointcutAdvisor in project spring-framework by spring-projects.

the class AspectJPrecedenceComparatorTests method createAspectJAdvice.

private Advisor createAspectJAdvice(int advisorOrder, int adviceDeclarationOrder, String aspectName, AbstractAspectJAdvice advice) {
    advice.setDeclarationOrder(adviceDeclarationOrder);
    advice.setAspectName(aspectName);
    AspectJPointcutAdvisor advisor = new AspectJPointcutAdvisor(advice);
    advisor.setOrder(advisorOrder);
    return advisor;
}
Also used : AspectJPointcutAdvisor(org.springframework.aop.aspectj.AspectJPointcutAdvisor)

Aggregations

AspectJPointcutAdvisor (org.springframework.aop.aspectj.AspectJPointcutAdvisor)1