1 8 package test.intercept.call; 9 10 13 public class Callee { 14 15 public void adviseWithAround() { 16 InterceptTest.log("adviseWithAround "); 17 } 18 19 public void adviseWithAround2() { 20 InterceptTest.log("adviseWithAround2 "); 21 } 22 23 public void adviseWithAroundStack() { 24 InterceptTest.log("adviseWithAroundStack "); 25 } 26 27 public void adviseWithBefore() { 28 InterceptTest.log("adviseWithBefore "); 29 } 30 31 public void adviseWithAfter() { 32 InterceptTest.log("adviseWithAfter "); 33 } 34 35 public Object adviseWithAfterReturning() { 36 InterceptTest.log("adviseWithAfterReturning "); 37 return "returnValue"; 38 } 39 40 public void adviseWithAfterThrowing() { 41 InterceptTest.log("adviseWithAfterThrowing "); 42 throw new RuntimeException ("noop"); 43 } 44 } 45 | Popular Tags |