public class CustomSerializationObjectMapper
extends com.fasterxml.jackson.databind.ObjectMapper
ObjectMapper
that lets you provide your own
serializers/deserializers.Modifier and Type | Field and Description |
---|---|
protected Map<Class<?>,com.fasterxml.jackson.databind.JsonDeserializer<?>> |
deserializers |
protected List<com.fasterxml.jackson.databind.JsonSerializer<?>> |
serializers |
_defaultPrettyPrinter, _deserializationConfig, _deserializationContext, _injectableValues, _jsonFactory, _mixInAnnotations, _rootDeserializers, _rootNames, _serializationConfig, _serializerFactory, _serializerProvider, _subtypeResolver, _typeFactory, DEFAULT_ANNOTATION_INTROSPECTOR, DEFAULT_BASE, DEFAULT_INTROSPECTOR, STD_VISIBILITY_CHECKER
Constructor and Description |
---|
CustomSerializationObjectMapper() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
protected void |
registerSerializationModule() |
void |
setDeserializers(Map<Class<?>,com.fasterxml.jackson.databind.JsonDeserializer<?>> deserializers) |
void |
setSerializers(List<com.fasterxml.jackson.databind.JsonSerializer<?>> serializers) |
_checkInvalidCopy, _configAndWriteValue, _configAndWriteValue, _convert, _defaultPrettyPrinter, _findRootDeserializer, _initForReading, _readMapAndClose, _readValue, _serializerProvider, _unwrapAndDeserialize, _verifySchemaType, acceptJsonFormatVisitor, acceptJsonFormatVisitor, addHandler, addMixInAnnotations, canDeserialize, canDeserialize, canSerialize, canSerialize, clearProblemHandlers, configure, configure, configure, configure, configure, constructType, convertValue, convertValue, convertValue, copy, createArrayNode, createDeserializationContext, createObjectNode, disable, disable, disable, disable, disable, disableDefaultTyping, enable, enable, enable, enable, enable, enableDefaultTyping, enableDefaultTyping, enableDefaultTyping, enableDefaultTypingAsProperty, findAndRegisterModules, findMixInClassFor, findModules, findModules, generateJsonSchema, getDeserializationConfig, getDeserializationContext, getFactory, getJsonFactory, getNodeFactory, getSerializationConfig, getSerializerFactory, getSerializerProvider, getSubtypeResolver, getTypeFactory, getVisibilityChecker, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, mixInCount, reader, reader, reader, reader, reader, reader, reader, reader, reader, reader, reader, readerForUpdating, readerWithView, readTree, readTree, readTree, readTree, readTree, readTree, readTree, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValue, readValues, readValues, readValues, readValues, registerModule, registerModules, registerModules, registerSubtypes, registerSubtypes, setAnnotationIntrospector, setAnnotationIntrospectors, setBase64Variant, setDateFormat, setDefaultTyping, setFilters, setHandlerInstantiator, setInjectableValues, setLocale, setMixInAnnotations, setNodeFactory, setPropertyNamingStrategy, setSerializationInclusion, setSerializerFactory, setSerializerProvider, setSubtypeResolver, setTimeZone, setTypeFactory, setVisibility, setVisibilityChecker, treeAsTokens, treeToValue, valueToTree, version, writer, writer, writer, writer, writer, writer, writer, writer, writer, writer, writerWithDefaultPrettyPrinter, writerWithType, writerWithType, writerWithType, writerWithView, writeTree, writeTree, writeValue, writeValue, writeValue, writeValue, writeValueAsBytes, writeValueAsString
protected List<com.fasterxml.jackson.databind.JsonSerializer<?>> serializers
public void setSerializers(List<com.fasterxml.jackson.databind.JsonSerializer<?>> serializers)
public void setDeserializers(Map<Class<?>,com.fasterxml.jackson.databind.JsonDeserializer<?>> deserializers)
@PostConstruct public void init()
protected void registerSerializationModule()
Copyright © 2015 CrafterCMS. All Rights Reserved.