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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasDefaultMethods(Class<?> interfaceClass) Returns whether theinterfaceClassdeclaresdefault methods.invoke(org.aopalliance.intercept.MethodInvocation invocation)
-
Constructor Details
-
DefaultMethodInvokingMethodInterceptor
public DefaultMethodInvokingMethodInterceptor()
-
-
Method Details
-
hasDefaultMethods
Returns whether theinterfaceClassdeclaresdefault methods.- Parameters:
interfaceClass- theClassto inspect.- Returns:
- true if
interfaceClassdeclares a default method. - Since:
- 2.2
-
invoke
@Nullable public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable - Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-