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.ThrowsAdvice;
07:
08: import java.lang.reflect.Method;
09:
10: public class SimpleAfterThrowingAdvice implements ThrowsAdvice {
11:
12: public void afterThrowing(Method method, Object[] args,
13: Object target, Throwable cause) throws Throwable {
14: Logger.log += "after-throwing(" + cause.toString() + ") args("
15: + args[0] + ") this(" + target.getClass().getName()
16: + ") ";
17: }
18:
19: }
|