You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FirstAspect.aj 372B

123456789101112
  1. import org.aspectj.lang.ProceedingJoinPoint;
  2. import org.aspectj.lang.annotation.Around;
  3. import org.aspectj.lang.annotation.Aspect;
  4. @Aspect
  5. public class FirstAspect {
  6. @Around("execution(* doSomething())")
  7. public Object doAround(ProceedingJoinPoint joinPoint) throws Throwable {
  8. System.out.println(getClass().getSimpleName());
  9. return joinPoint.proceed();
  10. }
  11. }