Class MethodInvocationValidator
java.lang.Object
org.springframework.data.util.NullnessMethodInvocationValidator
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, Christoph Strobl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RuntimeException
returnValueIsNull
(Method method) Template method to construct aRuntimeException
indicating failure to return a non-null return value.Methods inherited from class org.springframework.data.util.NullnessMethodInvocationValidator
argumentIsNull, invoke, supports
-
Constructor Details
-
MethodInvocationValidator
public MethodInvocationValidator()
-
-
Method Details
-
returnValueIsNull
Description copied from class:NullnessMethodInvocationValidator
Template method to construct aRuntimeException
indicating failure to return a non-null return value.- Overrides:
returnValueIsNull
in classNullnessMethodInvocationValidator
- Returns:
-