1 16 17 package org.springframework.aop; 18 19 import org.aopalliance.intercept.MethodInterceptor; 20 import org.aopalliance.intercept.MethodInvocation; 21 22 25 final class SimpleBeforeAdviceInterceptor implements MethodInterceptor { 26 27 private SimpleBeforeAdvice advice; 28 29 public SimpleBeforeAdviceInterceptor(SimpleBeforeAdvice advice) { 30 this.advice = advice; 31 } 32 33 public Object invoke(MethodInvocation mi) throws Throwable { 34 advice.before(); 35 return mi.proceed(); 36 } 37 38 } 39 | Popular Tags |