Class DefaultMethodInvokingMethodInterceptor
java.lang.Object
org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor
- All Implemented Interfaces:
Advice
,Interceptor
,MethodInterceptor
Method interceptor to invoke default methods on the repository proxy.
- Author:
- Oliver Gierke, Jens Schauder, Mark Paluch, Johannes Englmeier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasDefaultMethods
(Class<?> interfaceClass) Returns whether theinterfaceClass
declaresdefault methods
.invoke
(MethodInvocation invocation)
-
Constructor Details
-
DefaultMethodInvokingMethodInterceptor
public DefaultMethodInvokingMethodInterceptor()
-
-
Method Details
-
hasDefaultMethods
Returns whether theinterfaceClass
declaresdefault methods
.- Parameters:
interfaceClass
- theClass
to inspect.- Returns:
- true if
interfaceClass
declares a default method. - Since:
- 2.2
-
invoke
- Specified by:
invoke
in interfaceMethodInterceptor
- Throws:
Throwable
-