org.springframework.aop.aspectj
Class AspectJMethodBeforeAdvice
java.lang.Object
   org.springframework.aop.aspectj.AbstractAspectJAdvice
org.springframework.aop.aspectj.AbstractAspectJAdvice
       org.springframework.aop.aspectj.AspectJMethodBeforeAdvice
org.springframework.aop.aspectj.AspectJMethodBeforeAdvice
- All Implemented Interfaces: 
- Advice, AspectJPrecedenceInformation, BeforeAdvice, MethodBeforeAdvice, Ordered
- public class AspectJMethodBeforeAdvice 
- extends AbstractAspectJAdvice- implements MethodBeforeAdvice
Spring AOP advice that wraps an AspectJ before method.
- Since:
- 2.0
- Author:
- Rod Johnson, Adrian Colyer
 
 
 
 
 
| Methods inherited from class org.springframework.aop.aspectj.AbstractAspectJAdvice | 
| argBinding, buildSafePointcut, calculateArgumentBindings, createParameterNameDiscoverer, currentJoinPoint, getAspectClassLoader, getAspectInstanceFactory, getAspectJAdviceMethod, getAspectName, getDeclarationOrder, getDiscoveredReturningGenericType, getDiscoveredReturningType, getDiscoveredThrowingType, getJoinPoint, getJoinPointMatch, getJoinPointMatch, getOrder, getPointcut, invokeAdviceMethod, invokeAdviceMethod, invokeAdviceMethodWithGivenArgs, setArgumentNames, setArgumentNamesFromStringArray, setAspectName, setDeclarationOrder, setReturningName, setReturningNameNoCheck, setThrowingName, setThrowingNameNoCheck, supportsProceedingJoinPoint, toString | 
 
 
AspectJMethodBeforeAdvice
public AspectJMethodBeforeAdvice(Method aspectJBeforeAdviceMethod,
                                 AspectJExpressionPointcut pointcut,
                                 AspectInstanceFactory aif)
before
public void before(Method method,
                   Object[] args,
                   Object target)
            throws Throwable
- Description copied from interface: MethodBeforeAdvice
- Callback before a given method is invoked.
 
- 
- Specified by:
- beforein interface- MethodBeforeAdvice
 
- 
- Parameters:
- method- method being invoked
- args- arguments to the method
- target- target of the method invocation. May be- null.
- Throws:
- Throwable- if this object wishes to abort the call.
 Any exception thrown will be returned to the caller if it's
 allowed by the method signature. Otherwise the exception
 will be wrapped as a runtime exception.
 
isBeforeAdvice
public boolean isBeforeAdvice()
- Description copied from interface: AspectJPrecedenceInformation
- Return whether this is a before advice.
 
- 
- Specified by:
- isBeforeAdvicein interface- AspectJPrecedenceInformation
 
- 
 
isAfterAdvice
public boolean isAfterAdvice()
- Description copied from interface: AspectJPrecedenceInformation
- Return whether this is an after advice.
 
- 
- Specified by:
- isAfterAdvicein interface- AspectJPrecedenceInformation
 
- 
 
Copyright © 2002-2008 The Spring Framework.