spring-framework / org.aopalliance.intercept / MethodInterceptor / invoke

invoke

abstract fun invoke(invocation: MethodInvocation): Any

Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invoke Joinpoint#proceed().

Parameters

invocation - the method invocation joinpoint

Exceptions

Throwable - if the interceptors or the target object throws an exception

Return
the result of the call to Joinpoint#proceed(); might be intercepted by the interceptor