KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > spring > aop > SimpleAfterReturningAdvice


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.spring.aop;
5
6 import org.springframework.aop.AfterReturningAdvice;
7 import java.lang.reflect.Method JavaDoc;
8
9 public class SimpleAfterReturningAdvice implements AfterReturningAdvice {
10
11   public void afterReturning(Object JavaDoc returnValue, Method JavaDoc method, Object JavaDoc[] args, Object JavaDoc target) throws Throwable JavaDoc {
12     Logger.log += "after-returning(" + returnValue + ") args(" + args[0] + ") this(" + target.getClass().getName() + ") ";
13   }
14
15 }
16
Popular Tags