Top Description Fields Constructors Methods
org.springframework.aop.aspectj

public Class AspectJMethodBeforeAdvice

extends AbstractAspectJAdvice
implements MethodBeforeAdvice, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.springframework.aop.MethodBeforeAdvice, org.springframework.aop.BeforeAdvice, org.aopalliance.aop.Advice
Annotations
@SuppressWarnings:serial
Imports
java.io.Serializable, java.lang.reflect.Method, org.springframework.aop.MethodBeforeAdvice, org.springframework.lang.Nullable

Spring AOP advice that wraps an AspectJ before method.
Authors
Rod Johnson, Adrian Colyer
Since
2.0

Field Summary

Inherited from org.springframework.aop.aspectj.AbstractAspectJAdvice:
aspectJAdviceMethodJOIN_POINT_KEY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
before(Method
the method being invoked
method
,
Object[]
the arguments to the method
args
,
Object
the target of the method invocation. May be null.
target
)

Implements org.springframework.aop.MethodBeforeAdvice.before.

Callback before a given method is invoked.
public boolean
public boolean
Inherited from org.springframework.aop.aspectj.AbstractAspectJAdvice:
argBindingbuildSafePointcutcalculateArgumentBindingscreateParameterNameDiscoverercurrentJoinPointgetAspectClassLoadergetAspectInstanceFactorygetAspectJAdviceMethodgetAspectNamegetDeclarationOrdergetDiscoveredReturningGenericTypegetDiscoveredReturningTypegetDiscoveredThrowingTypegetJoinPointgetJoinPointMatchgetJoinPointMatchgetOrdergetPointcutinvokeAdviceMethodinvokeAdviceMethodinvokeAdviceMethodWithGivenArgssetArgumentNamessetArgumentNamesFromStringArraysetAspectNamesetDeclarationOrdersetReturningNamesetReturningNameNoChecksetThrowingNamesetThrowingNameNoChecksupportsProceedingJoinPointtoString

Constructor Detail

AspectJMethodBeforeAdviceback to summary
public AspectJMethodBeforeAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)

Method Detail

beforeback to summary
public void before(Method method, Object[] args, Object target) throws Throwable

Implements org.springframework.aop.MethodBeforeAdvice.before.

Doc from org.springframework.aop.MethodBeforeAdvice.before.

Callback before a given method is invoked.

Parameters
method:Method

the method being invoked

args:Object[]

the arguments to the method

target:Object

the target of the method invocation. May be null.

Annotations
@Override
Exceptions
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.
isAfterAdviceback to summary
public boolean isAfterAdvice()

Implements org.springframework.aop.aspectj.AspectJPrecedenceInformation.isAfterAdvice.

Doc from org.springframework.aop.aspectj.AspectJPrecedenceInformation.isAfterAdvice.

Return whether this is an after advice.

Annotations
@Override
isBeforeAdviceback to summary
public boolean isBeforeAdvice()

Implements org.springframework.aop.aspectj.AspectJPrecedenceInformation.isBeforeAdvice.

Doc from org.springframework.aop.aspectj.AspectJPrecedenceInformation.isBeforeAdvice.

Return whether this is a before advice.

Annotations
@Override