public interface MethodInterceptor
Implementing classes are required to implement the invoke(MethodInvocation) method to modify the original behavior.
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(MethodInvocation invocation)
Implement this method to perform extra treatments before and after the invocation.
|
Object invoke(MethodInvocation invocation) throws Throwable
MethodInvocation.proceed().invocation - the method invocationMethodInvocation.proceed(), might be intercepted by the interceptor.Throwable - if the interceptors or the target-object throws an exception.Copyright © 2019 lettuce.io. All rights reserved.