public interface MethodBeforeAdvice extends BeforeAdvice
AfterReturningAdvice,
ThrowsAdvice| Modifier and Type | Method and Description |
|---|---|
void |
before(Method method,
Object[] args,
Object target)
Callback before a given method is invoked.
|
void before(Method method, Object[] args, Object target) throws Throwable
method - method being invokedargs - arguments to the methodtarget - target of the method invocation. May be null.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.