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

io.quarkus.jackson.ObjectMapperCustomizer Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.jackson;

import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * Meant to be implemented by a CDI bean that provides arbitrary customization for the default {@link ObjectMapper}.
 * 

* All implementations (that are registered as CDI beans) are taken into account when producing the default * {@link ObjectMapper}. *

* See also {@link ObjectMapperProducer#objectMapper}. */ public interface ObjectMapperCustomizer extends Comparable { int MINIMUM_PRIORITY = Integer.MIN_VALUE; int DEFAULT_PRIORITY = 0; void customize(ObjectMapper objectMapper); /** * 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 */ default int priority() { return DEFAULT_PRIORITY; } default int compareTo(ObjectMapperCustomizer o) { return Integer.compare(o.priority(), priority()); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy