1 8 package test.bindingsyntax; 9 10 import org.codehaus.aspectwerkz.joinpoint.JoinPoint; 11 12 15 public class TestAspect { 16 public Object advice1(final JoinPoint joinPoint) throws Throwable { 17 String last = AdviceBindingTest.flow; 18 AdviceBindingTest.flow += " "; 19 Object r = joinPoint.proceed(); 20 AdviceBindingTest.flow = last; 21 return '1' + (String ) r; 22 } 23 24 public Object advice2(final JoinPoint joinPoint) throws Throwable { 25 String last = AdviceBindingTest.flow; 26 AdviceBindingTest.flow += " "; 27 Object r = joinPoint.proceed(); 28 AdviceBindingTest.flow = last; 29 return '2' + (String ) r; 30 } 31 } | Popular Tags |