選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }