Package org.springframework.aop.aspectj
Class AspectJMethodBeforeAdvice
java.lang.Object
org.springframework.aop.aspectj.AbstractAspectJAdvice
org.springframework.aop.aspectj.AspectJMethodBeforeAdvice
- All Implemented Interfaces:
- Serializable,- Advice,- AspectJPrecedenceInformation,- BeforeAdvice,- MethodBeforeAdvice,- Ordered
public class AspectJMethodBeforeAdvice
extends AbstractAspectJAdvice
implements MethodBeforeAdvice, Serializable
Spring AOP advice that wraps an AspectJ before method.
- Since:
- 2.0
- Author:
- Rod Johnson, Adrian Colyer
- See Also:
- 
Field SummaryFields inherited from class org.springframework.aop.aspectj.AbstractAspectJAdviceaspectJAdviceMethod, JOIN_POINT_KEYFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionAspectJMethodBeforeAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidCallback before a given method is invoked.booleanReturn whether this is an after advice.booleanReturn whether this is a before advice.Methods inherited from class org.springframework.aop.aspectj.AbstractAspectJAdviceargBinding, 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
- 
Constructor Details- 
AspectJMethodBeforeAdvicepublic AspectJMethodBeforeAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif) 
 
- 
- 
Method Details- 
beforeDescription copied from interface:MethodBeforeAdviceCallback before a given method is invoked.- Specified by:
- beforein interface- MethodBeforeAdvice
- Parameters:
- method- the method being invoked
- args- the arguments to the method
- target- the 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.
 
- 
isBeforeAdvicepublic boolean isBeforeAdvice()Description copied from interface:AspectJPrecedenceInformationReturn whether this is a before advice.- Specified by:
- isBeforeAdvicein interface- AspectJPrecedenceInformation
 
- 
isAfterAdvicepublic boolean isAfterAdvice()Description copied from interface:AspectJPrecedenceInformationReturn whether this is an after advice.- Specified by:
- isAfterAdvicein interface- AspectJPrecedenceInformation
 
 
-