All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adgear.anoa.write.JacksonConsumersBase Maven / Gradle / Ivy

Go to download

Additional functionality complementing the anoa-core module, requiring additional upstream dependencies such as jackson-databind and various jackson dataformats.

There is a newer version: 3.1.2
Show newest version
package com.adgear.anoa.write;

import com.fasterxml.jackson.core.FormatSchema;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;

import java.util.Optional;

class JacksonConsumersBase<
    M extends ObjectMapper,
    F extends JsonFactory,
    S extends FormatSchema,
    G extends JsonGenerator>
    extends JacksonConsumers {

  JacksonConsumersBase(M objectMapper) {
    this(objectMapper, Optional.empty());
  }

  JacksonConsumersBase(M objectMapper, Optional schema) {
    super(objectMapper, schema);
    objectMapper.findAndRegisterModules();
  }
}