01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tctest.spring.aop;
05:
06: import org.aopalliance.intercept.MethodInterceptor;
07: import org.aopalliance.intercept.MethodInvocation;
08:
09: public class SimpleMethodInterceptor2 implements MethodInterceptor {
10:
11: public Object invoke(MethodInvocation methodInvocation)
12: throws Throwable {
13: Logger.log += "before-around args("
14: + methodInvocation.getArguments()[0] + ") this("
15: + methodInvocation.getThis().getClass().getName()
16: + ") ";
17: Object result = methodInvocation.proceed();
18: Logger.log += "after-around ";
19: return result;
20: }
21:
22: }
|