Search in sources :

Example 1 with BeforeAdvice

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

the class AspectJPrecedenceComparatorTests method createSpringAOPBeforeAdvice.

private Advisor createSpringAOPBeforeAdvice(int order) {
    BeforeAdvice advice = new BeforeAdvice() {
    };
    DefaultPointcutAdvisor advisor = new DefaultPointcutAdvisor(this.anyOldPointcut, advice);
    advisor.setOrder(order);
    return advisor;
}
Also used : AspectJMethodBeforeAdvice(cn.taketoday.aop.aspectj.AspectJMethodBeforeAdvice) BeforeAdvice(cn.taketoday.aop.BeforeAdvice) DefaultPointcutAdvisor(cn.taketoday.aop.support.DefaultPointcutAdvisor)

Example 2 with BeforeAdvice

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

the class AspectJPrecedenceComparatorTests method createSpringAOPBeforeAdvice.

private Advisor createSpringAOPBeforeAdvice(int order) {
    BeforeAdvice advice = new BeforeAdvice() {
    };
    DefaultPointcutAdvisor advisor = new DefaultPointcutAdvisor(this.anyOldPointcut, advice);
    advisor.setOrder(order);
    return advisor;
}
Also used : AspectJMethodBeforeAdvice(cn.taketoday.aop.aspectj.AspectJMethodBeforeAdvice) BeforeAdvice(cn.taketoday.aop.BeforeAdvice) DefaultPointcutAdvisor(cn.taketoday.aop.support.DefaultPointcutAdvisor)

Aggregations

BeforeAdvice (cn.taketoday.aop.BeforeAdvice)2 AspectJMethodBeforeAdvice (cn.taketoday.aop.aspectj.AspectJMethodBeforeAdvice)2 DefaultPointcutAdvisor (cn.taketoday.aop.support.DefaultPointcutAdvisor)2