Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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