1 package dynaop.example; 2 3 import dynaop.Interceptor; 4 import dynaop.Invocation; 5 6 11 public class SequenceInterceptor implements Interceptor { 12 13 public Object intercept(Invocation i) throws Throwable { 14 try { 15 Sequence.start(i.getProxy(), 16 i.getProxy().getProxyContext().unwrap(), 17 i.getMethod().getName()); 18 return i.proceed(); 19 } 20 finally { 21 Sequence.end(); 22 } 23 } 24 25 } 26 | Popular Tags |