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.springframework.aop.AfterReturningAdvice;
07: import java.lang.reflect.Method;
08:
09: public class SimpleAfterReturningAdvice implements AfterReturningAdvice {
10:
11: public void afterReturning(Object returnValue, Method method,
12: Object[] args, Object target) throws Throwable {
13: Logger.log += "after-returning(" + returnValue + ") args("
14: + args[0] + ") this(" + target.getClass().getName()
15: + ") ";
16: }
17:
18: }
|