Search in sources :

Example 1 with AspectJPointcutAdvisor

use of cn.taketoday.aop.aspectj.AspectJPointcutAdvisor in project today-infrastructure by TAKETODAY.

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(cn.taketoday.aop.aspectj.AspectJPointcutAdvisor)

Example 2 with AspectJPointcutAdvisor

use of cn.taketoday.aop.aspectj.AspectJPointcutAdvisor in project today-framework by TAKETODAY.

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(cn.taketoday.aop.aspectj.AspectJPointcutAdvisor)

Aggregations

AspectJPointcutAdvisor (cn.taketoday.aop.aspectj.AspectJPointcutAdvisor)2