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.

Logger.aj 431B

123456789101112131415161718192021222324
  1. package test;
  2. public aspect Logger {
  3. //declare precedence: Logger, ErrorContainment;
  4. //
  5. // before() : adviceexecution() && !within(Logger){
  6. //
  7. // System.out.println("--->Logger:" + thisJoinPoint);
  8. //
  9. // }
  10. //
  11. // after() : adviceexecution() && !within(Logger) {
  12. //
  13. // System.out.println("--->Logger:" + thisJoinPoint);
  14. //
  15. // }
  16. before(): execution(* hk..*.do*(..)){
  17. System.out.println("This is a test");
  18. }
  19. }