01: package test.spring.aspect;
02:
03: import java.lang.reflect.Method;
04:
05: import org.springframework.aop.MethodBeforeAdvice;
06: import test.spring.Test;
07:
08: public class MyBeforeAdvice implements MethodBeforeAdvice {
09: public void _before() throws Throwable {
10: Test.log("before ");
11: }
12:
13: public void before(Method m, Object[] args, Object target)
14: throws Throwable {
15: Test.log("before ");
16: }
17: }
|