Class MethodInvocationValidator
java.lang.Object
org.springframework.data.repository.core.support.MethodInvocationValidator
- All Implemented Interfaces:
Advice,Interceptor,MethodInterceptor
Interceptor enforcing required return value and method parameter constraints declared on repository query methods.
Supports Kotlin nullability markers and JSR-305 Non-null annotations.
- Since:
- 2.0
- Author:
- Mark Paluch, Johannes Englmeier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(MethodInvocation invocation) static booleanReturns true if therepositoryInterfaceis supported by this interceptor.
-
Constructor Details
-
MethodInvocationValidator
public MethodInvocationValidator()
-
-
Method Details
-
supports
Returns true if therepositoryInterfaceis supported by this interceptor.- Parameters:
repositoryInterface- the interface class.- Returns:
- true if the
repositoryInterfaceis supported by this interceptor.
-
invoke
- Specified by:
invokein interfaceMethodInterceptor- Throws:
Throwable
-