Search in sources :

Example 1 with BeforeAdvice

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

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(org.springframework.aop.aspectj.AspectJMethodBeforeAdvice) BeforeAdvice(org.springframework.aop.BeforeAdvice) DefaultPointcutAdvisor(org.springframework.aop.support.DefaultPointcutAdvisor)

Aggregations

BeforeAdvice (org.springframework.aop.BeforeAdvice)1 AspectJMethodBeforeAdvice (org.springframework.aop.aspectj.AspectJMethodBeforeAdvice)1 DefaultPointcutAdvisor (org.springframework.aop.support.DefaultPointcutAdvisor)1