Package io.quarkus.jackson
Interface ObjectMapperCustomizer
-
- All Superinterfaces:
Comparable<ObjectMapperCustomizer>
public interface ObjectMapperCustomizer extends Comparable<ObjectMapperCustomizer>
Meant to be implemented by a CDI bean that provides arbitrary customization for the defaultObjectMapper
.All implementations (that are registered as CDI beans) are taken into account when producing the default
ObjectMapper
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_PRIORITY
static int
MINIMUM_PRIORITY
static int
QUARKUS_CUSTOMIZER_PRIORITY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default int
compareTo(ObjectMapperCustomizer o)
void
customize(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
default int
priority()
Defines the priority that the customizers are applied.
-
-
-
Field Detail
-
MINIMUM_PRIORITY
static final int MINIMUM_PRIORITY
- See Also:
- Constant Field Values
-
QUARKUS_CUSTOMIZER_PRIORITY
static final int QUARKUS_CUSTOMIZER_PRIORITY
- See Also:
- Constant Field Values
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 interfaceComparable<ObjectMapperCustomizer>
-
-