1 2 3 4 5 6 7 8 9 10 11 12 13 14
import org.aspectj.lang.annotation.*; import org.aspectj.lang.*; public abstract aspect Foo { public abstract pointcut targetPointcut(); @Around("targetPointcut()") public Object someAdvice(ProceedingJoinPoint thisJoinPoint) { return thisJoinPoint.proceed(); } }