spring-framework / org.springframework.aop / MethodBeforeAdvice / before

before

abstract fun before(method: Method, args: Array<Any>, @Nullable target: Any): Unit

Callback before a given method is invoked.

Parameters

method - method being invoked

args - arguments to the method

target - 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.