クラス GenericMarshallingMethodEndpointAdapter

実装されたすべてのインターフェース:
org.springframework.beans.factory.InitializingBeanEndpointAdapter

@DeprecatedSE public class GenericMarshallingMethodEndpointAdapter extends MarshallingMethodEndpointAdapter
使用すべきではありません。
Spring Web Services 2.0 の時点で、DefaultMethodEndpointAdapterMarshallingPayloadMethodProcessor が優先されます。
GenericMarshaller および GenericUnmarshaller をサポートする MarshallingMethodEndpointAdapter のサブクラス。より具体的には、このアダプターは Method.getGenericParameterTypes() および Method.getGenericReturnType() を認識します。

プレーンな MarshallingMethodEndpointAdapter を Jaxb2Marshaller などの Java 5 マーシャラーと組み合わせて使用するのではなく、このアダプターを使用することをお勧めします。

導入:
1.0.2
作成者:
Arjen Poutsma
  • コンストラクターの詳細

    • GenericMarshallingMethodEndpointAdapter

      public GenericMarshallingMethodEndpointAdapter()
      使用すべきではありません。
      新しい GenericMarshallingMethodEndpointAdapter を作成します。Marshaller および Unmarshaller は、プロパティを使用して注入する必要があります。
      関連事項:
    • GenericMarshallingMethodEndpointAdapter

      public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller)
      使用すべきではありません。
      指定されたマーシャラーで新しい GenericMarshallingMethodEndpointAdapter を作成します。指定された Marshaller が Unmarshaller インターフェースも実装している場合、マーシャリングとアンマーシャリングの両方に使用されます。それ以外の場合は、例外がスローされます。

      Spring-WS のすべての Marshaller 実装は Unmarshaller インターフェースも実装しているため、このコンストラクターを安全に使用できることに注意してください。

      パラメーター:
      marshaller - マーシャラーおよびアンマーシャラーとして使用されるオブジェクト
      例外:
      IllegalArgumentExceptionSE - marshaller が Unmarshaller インターフェースを実装していない場合
    • GenericMarshallingMethodEndpointAdapter

      public GenericMarshallingMethodEndpointAdapter(org.springframework.oxm.Marshaller marshaller, org.springframework.oxm.Unmarshaller unmarshaller)
      使用すべきではありません。
      指定されたマーシャラーとアンマーシャラーを使用して新しい GenericMarshallingMethodEndpointAdapter を作成します。
      パラメーター:
      marshaller - 使用するマーシャラー
      unmarshaller - 使用するアンマーシャラー
  • メソッドの詳細

    • supportsInternal

      protected boolean supportsInternal(MethodEndpoint methodEndpoint)
      使用すべきではありません。
      クラスからコピーされた説明: MarshallingMethodEndpointAdapter
      単一のマーシャリング不可能なパラメーターを持ち、void またはマーシャリング可能な型を返すメソッドをサポートします。
      オーバーライド:
      クラス MarshallingMethodEndpointAdaptersupportsInternal 
      パラメーター:
      methodEndpoint - チェックするメソッドエンドポイント
      戻り値:
      このアダプターが指定されたメソッドを適合できるかどうか
      関連事項:
      • Marshaller.supports(Class)
      • Unmarshaller.supports(Class)