クラス JacksonJsonObjectMarshaller<T>

java.lang.ObjectSE
org.springframework.batch.item.json.JacksonJsonObjectMarshaller<T>
型パラメーター:
T - マーシャリングするオブジェクトの型
実装されたすべてのインターフェース:
JsonObjectMarshaller<T>

public class JacksonJsonObjectMarshaller<T> extends ObjectSE implements JsonObjectMarshaller<T>
Jackson を使用してオブジェクトを json 表現にマーシャリングする json オブジェクトマーシャラー。
導入:
4.1
作成者:
Mahmoud Ben Hassine
  • コンストラクターの詳細

    • JacksonJsonObjectMarshaller

      public JacksonJsonObjectMarshaller()
    • JacksonJsonObjectMarshaller

      public JacksonJsonObjectMarshaller(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • メソッドの詳細

    • setObjectMapper

      public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      使用する ObjectMapper を設定します。
      パラメーター:
      objectMapper - 使用対象
      関連事項:
    • marshal

      public StringSE marshal(T item)
      インターフェースからコピーされた説明: JsonObjectMarshaller
      オブジェクトを JSON 表現にマーシャリングします。
      次で指定:
      インターフェース JsonObjectMarshaller<T>marshal 
      パラメーター:
      item - 元 mar に
      戻り値:
      オブジェクトの JSON 表現