クラス DefaultMethodEndpointAdapter

実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, EndpointAdapter

public class DefaultMethodEndpointAdapter extends AbstractMethodEndpointAdapter implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean
導入:
2.0
  • コンストラクターの詳細

    • DefaultMethodEndpointAdapter

      public DefaultMethodEndpointAdapter()
  • 方法の詳細

    • withDefaults

      public static DefaultMethodEndpointAdapter withDefaults()
      デフォルトのメソッド引数と戻り値リゾルバーを使用して新しいインスタンスを作成します。
      戻り値:
      デフォルトが設定された新しいインスタンス
    • getMethodArgumentResolvers

      public ListSE<MethodArgumentResolver> getMethodArgumentResolvers()
      使用する MethodArgumentResolver のリストを返します。
    • setMethodArgumentResolvers

      public void setMethodArgumentResolvers(ListSE<MethodArgumentResolver> methodArgumentResolvers)
      使用する MethodArgumentResolver のリストを設定します。
    • getMethodReturnValueHandlers

      public ListSE<MethodReturnValueHandler> getMethodReturnValueHandlers()
      使用する MethodReturnValueHandler のリストを返します。
    • setMethodReturnValueHandlers

      public void setMethodReturnValueHandlers(ListSE<MethodReturnValueHandler> methodReturnValueHandlers)
      使用する MethodReturnValueHandler のリストを設定します。
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoaderSE classLoader)
      次で指定:
      インターフェース org.springframework.beans.factory.BeanClassLoaderAware 内の setBeanClassLoader 
    • afterPropertiesSet

      public void afterPropertiesSet() throws ExceptionSE
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBean 内の afterPropertiesSet 
      例外:
      ExceptionSE
    • initDefaultStrategies

      protected void initDefaultStrategies()
      アダプターの戦略のデフォルトの実装を初期化します。
    • supportsInternal

      protected boolean supportsInternal(MethodEndpoint methodEndpoint)
      クラスからコピーされた説明: AbstractMethodEndpointAdapter
      メソッドエンドポイントを指定して、このアダプターがそれをサポートできるかどうかを返します。
      次で指定:
      クラス AbstractMethodEndpointAdaptersupportsInternal 
      パラメーター:
      methodEndpoint - チェックするメソッドエンドポイント
      戻り値:
      このアダプターが指定されたメソッドを適合できるかどうか
    • invokeInternal

      protected final void invokeInternal(MessageContext messageContext, MethodEndpoint methodEndpoint) throws ExceptionSE
      クラスからコピーされた説明: AbstractMethodEndpointAdapter
      指定されたメソッドエンドポイントを使用してリクエストを処理します。
      次で指定:
      クラス AbstractMethodEndpointAdapterinvokeInternal 
      パラメーター:
      messageContext - 現在のメッセージコンテキスト
      methodEndpoint - 使用するメソッドエンドポイント
      例外:
      ExceptionSE - エラーの場合
    • getMethodArguments

      protected @Nullable ObjectSE[] getMethodArguments(MessageContext messageContext, MethodEndpoint methodEndpoint) throws ExceptionSE
      指定されたメソッドエンドポイントの引数配列を返します。

      この実装は、各引数を解決するために、設定された引数リゾルバーを繰り返し処理します。

      パラメーター:
      messageContext - 現在のメッセージコンテキスト
      methodEndpoint - 引数を取得するメソッドエンドポイント
      戻り値:
      引数
      例外:
      ExceptionSE - エラーの場合
    • handleMethodReturnValue

      protected void handleMethodReturnValue(MessageContext messageContext, ObjectSE returnValue, MethodEndpoint methodEndpoint) throws ExceptionSE
      指定されたメソッドエンドポイントの戻り値を処理します。

      この実装は、設定された setMethodReturnValueHandlers(java.util.List) 戻り値ハンドラー } を繰り返し処理して、戻り値を解決します。

      パラメーター:
      messageContext - 現在のメッセージコンテキスト
      returnValue - 戻り値
      methodEndpoint - 引数を取得するメソッドエンドポイント
      例外:
      ExceptionSE - エラーの場合