public class JaxbAnnotationModule
extends com.fasterxml.jackson.databind.module.SimpleModule
objectMapper.setAnnotationIntrospector(...);with combination of
JaxbAnnotationIntrospector and existing
default introspector(s) (if any), depending on configuration
(by default, JAXB annotations are used as JaxbAnnotationModule.Priority.PRIMARY
annotations).| Modifier and Type | Class and Description |
|---|---|
static class |
JaxbAnnotationModule.Priority
Enumeration that defines how we use JAXB Annotations: either
as "primary" annotations (before any other already configured
introspector -- most likely default JacksonAnnotationIntrospector) or
as "secondary" annotations (after any other already configured
introspector(s)).
|
| Modifier and Type | Field and Description |
|---|---|
protected JaxbAnnotationModule.Priority |
_priority
Priority to use when registering annotation introspector: default
value is
JaxbAnnotationModule.Priority.PRIMARY. |
| Constructor and Description |
|---|
JaxbAnnotationModule() |
| Modifier and Type | Method and Description |
|---|---|
JaxbAnnotationModule.Priority |
getPriority() |
JaxbAnnotationModule |
setPriority(JaxbAnnotationModule.Priority p)
Method for defining whether JAXB annotations should be added
as primary or secondary annotations (compared to already registered
annotations).
|
void |
setupModule(com.fasterxml.jackson.databind.Module.SetupContext context) |
addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setSerializerModifier, setSerializers, setValueInstantiators, versionprotected JaxbAnnotationModule.Priority _priority
JaxbAnnotationModule.Priority.PRIMARY.public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
setupModule in class com.fasterxml.jackson.databind.module.SimpleModulepublic JaxbAnnotationModule setPriority(JaxbAnnotationModule.Priority p)
NOTE: method MUST be called before registering the module -- calling afterwards will not have any effect on previous registrations.
public JaxbAnnotationModule.Priority getPriority()
Copyright © 2012-2013 FasterXML. All Rights Reserved.