1 /*************************************************************************************** 2 * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. * 3 * http://aspectwerkz.codehaus.org * 4 * ---------------------------------------------------------------------------------- * 5 * The software in this package is published under the terms of the LGPL license * 6 * a copy of which has been included with this distribution in the license.txt file. * 7 **************************************************************************************/ 8 package test.intercept.call; 9 10 /*** 11 * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a> 12 */ 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 }