Interface ObjectMapperCustomizer

All Superinterfaces:
Comparable<ObjectMapperCustomizer>
All Known Implementing Classes:
VertxHybridPoolObjectMapperCustomizer

public interface ObjectMapperCustomizer extends Comparable<ObjectMapperCustomizer>
Meant to be implemented by a CDI bean that provides arbitrary customization for the default ObjectMapper.

All implementations (that are registered as CDI beans) are taken into account when producing the default ObjectMapper.

See also ObjectMapperProducer.objectMapper(java.util.List<io.quarkus.jackson.ObjectMapperCustomizer>, io.quarkus.jackson.runtime.JacksonBuildTimeConfig, io.quarkus.jackson.runtime.JacksonSupport).

  • Field Details

  • Method Details

    • customize

      void customize(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
    • priority

      default int priority()
      Defines the priority that the customizers are applied. A lower integer value means that the customizer will be applied after a customizer with a higher priority
    • compareTo

      default int compareTo(ObjectMapperCustomizer o)
      Specified by:
      compareTo in interface Comparable<ObjectMapperCustomizer>