Class DefaultMethodInvokingMethodInterceptor
java.lang.Object
org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice
,org.aopalliance.intercept.Interceptor
,org.aopalliance.intercept.MethodInterceptor
public class DefaultMethodInvokingMethodInterceptor
extends Object
implements org.aopalliance.intercept.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
(org.aopalliance.intercept.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
@Nullable public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable - Specified by:
invoke
in interfaceorg.aopalliance.intercept.MethodInterceptor
- Throws:
Throwable
-