インターフェース OperationArgumentResolver

すべての既知の実装クラス:
ProducibleOperationArgumentResolver

public interface OperationArgumentResolver
Operation の引数のリゾルバー。
導入:
2.5.0
作成者:
Andy Wilkinson
  • メソッドの詳細

    • canResolve

      boolean canResolve(ClassSE<?> type)
      指定された type の引数を解決できるかどうかを返します。
      パラメーター:
      type - 引数の型
      戻り値:
      必要な型の引数を解決できる場合は true、それ以外の場合は false
    • resolve

      <T> T resolve(ClassSE<T> type)
      指定された type の引数を解決します。
      型パラメーター:
      T - 引数の必須型
      パラメーター:
      type - 引数の型
      戻り値:
      必要な型の引数、または null
    • of

      static <T> OperationArgumentResolver of(ClassSE<T> type, SupplierSE<? extends T> supplier)
      SupplierSE を使用して特定の型の OperationArgumentResolver を作成するファクトリメソッド。
      型パラメーター:
      T - 解決可能な型
      パラメーター:
      type - 解決可能な型
      supplier - 価値サプライヤー
      戻り値:
      OperationArgumentResolver インスタンス