1 16 17 package org.springframework.aop.aspectj; 18 19 import java.lang.reflect.Method ; 20 21 import org.springframework.aop.MethodBeforeAdvice; 22 23 30 public class AspectJMethodBeforeAdvice extends AbstractAspectJAdvice implements MethodBeforeAdvice { 31 32 public AspectJMethodBeforeAdvice( 33 Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif) { 34 35 super(aspectJBeforeAdviceMethod, pointcut, aif); 36 } 37 38 public void before(Method method, Object [] args, Object target) throws Throwable { 39 invokeAdviceMethod(getJoinPointMatch(), null, null); 40 } 41 42 public boolean isBeforeAdvice() { 43 return true; 44 } 45 46 public boolean isAfterAdvice() { 47 return false; 48 } 49 50 } 51 | Popular Tags |