クラス MethodInvocationValidator

java.lang.ObjectSE
org.springframework.data.repository.core.support.MethodInvocationValidator
実装されたすべてのインターフェース:
AdviceInterceptorMethodInterceptor

public class MethodInvocationValidator extends ObjectSE implements MethodInterceptor
リポジトリクエリメソッドで宣言された必要な戻り値とメソッドパラメーターの制約を適用するインターセプタ。Kotlin nullability マーカーと JSR-305Non-null アノテーションをサポートします。
導入:
2.0
作成者:
Mark Paluch, Johannes Englmeier
関連事項:
  • コンストラクターの詳細

    • MethodInvocationValidator

      public MethodInvocationValidator()
  • メソッドの詳細

    • supports

      public static boolean supports(ClassSE<?> repositoryInterface)
      repositoryInterface がこのインターセプターでサポートされている場合は true を返します。
      パラメーター:
      repositoryInterface - インターフェースクラス。
      戻り値:
      repositoryInterface がこのインターセプターでサポートされている場合は true。
    • invoke

      @Nullable public ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
      次で指定:
      インターフェース MethodInterceptorinvoke 
      例外:
      ThrowableSE