Top Description Methods
org.springframework.aop

public Interface MethodBeforeAdvice

extends BeforeAdvice
Known Direct Implementers
org.springframework.aop.aspectj.AspectJMethodBeforeAdvice
Imports
java.lang.reflect.Method, org.springframework.lang.Nullable

Advice invoked before a method is invoked. Such advices cannot prevent the method call proceeding, unless they throw a Throwable.
Author
Rod Johnson
See Also
AfterReturningAdvice, ThrowsAdvice

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
)

Callback before a given method is invoked.

Method Detail

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

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.

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.