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. RequiresMethodInvocation
to implementInvocationTargetProvider
to determine the target object.- Since:
- 5.0
- Author:
- Mark Paluch
- See Also:
MethodInvocation
,InvocationTargetProvider
-
-
Constructor Summary
Constructors Constructor Description DefaultMethodInvokingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
invoke(MethodInvocation invocation)
Implement this method to perform extra treatments before and after the invocation.
-
-
-
Method Detail
-
invoke
public Object invoke(MethodInvocation invocation) throws Throwable
Description copied from interface:MethodInterceptor
Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invokeMethodInvocation.proceed()
.- Specified by:
invoke
in 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.
-
-