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.

LTWAroundClosure.aj 436B

1234567891011121314151617181920
  1. import java.util.List;
  2. public aspect LTWAroundClosure {
  3. pointcut println (List list) :
  4. execution(* println()) && this(list);
  5. void around (final List list) : println (list) {
  6. Runnable runnable = new Runnable() {
  7. public void run () {
  8. System.err.println("LTWAroundClosure.run(" + thisJoinPointStaticPart + ")");
  9. proceed(list);
  10. }
  11. };
  12. runnable.run();
  13. list.add("LTWAroundClosure");
  14. }
  15. }