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.

ThreadAspectLib.java 537B

12345678910111213141516171819
  1. public aspect ThreadAspectLib {
  2. // pointcut setThreadLocalsField(): set(private int TestLib.myInt);
  3. //
  4. // Integer around():setThreadLocalsField()
  5. // {
  6. // try{
  7. // return new Integer(2);
  8. // }
  9. // catch(Exception e)
  10. // {
  11. // e.printStackTrace();
  12. // return null;
  13. // }
  14. // }
  15. Integer around(): call(* getFive()) {
  16. return new Integer(3);
  17. }
  18. }