Module lettuce.core
Class DefaultMethodInvokingInterceptor
java.lang.Object
io.lettuce.core.dynamic.intercept.DefaultMethodInvokingInterceptor
- All Implemented Interfaces:
MethodInterceptor
public class DefaultMethodInvokingInterceptor extends Object implements MethodInterceptor
Invokes default interface methods. Requires
MethodInvocation to implement InvocationTargetProvider to
determine the target object.- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
MethodInvocation,InvocationTargetProvider
-
Constructor Summary
Constructors Constructor Description DefaultMethodInvokingInterceptor() -
Method Summary
Modifier and Type Method Description Objectinvoke(MethodInvocation invocation)Implement this method to perform extra treatments before and after the invocation.
-
Constructor Details
-
DefaultMethodInvokingInterceptor
public DefaultMethodInvokingInterceptor()
-
-
Method Details
-
invoke
Description copied from interface:MethodInterceptorImplement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invokeMethodInvocation.proceed().- Specified by:
invokein interfaceMethodInterceptor- Parameters:
invocation- the method invocation- Returns:
- the result of the call to
MethodInvocation.proceed(), might be intercepted by the interceptor. - Throws:
Throwable- if the interceptors or the target-object throws an exception.
-