JavaTimeModule
, see above for details on differences
in the default configuration.@Deprecated public final class JSR310Module extends com.fasterxml.jackson.databind.module.SimpleModule
JavaTimeModule
which was the default choice up to
Jackson 2.5, but was obsoleted in 2.6 by JavaTimeModule
.
Functionality does not differ between the two modules (at least in 2.6),
so Javadocs for JavaTimeModule
may be consulted for functionality
available.
The default settings do, however, such that
JavaTimeModule
uses same standard settings to default to
serialization that does NOT use Timezone Ids, and instead only uses ISO-8601
compliant Timezone offsets. Behavior may be changed using
SerializationFeature.WRITE_DATES_WITH_ZONE_ID
JSR310Module
defaults to serialization WITH Timezone Ids (to support
round-trippability of values when using JSR-310 types and Jackson)
JavaTimeModule
by simply
reconfiguring it by enabling
SerializationFeature.WRITE_DATES_WITH_ZONE_ID
.
This class is only retained to keep strict source and binary compatibility.
Jsr310NullKeySerializer
,
JavaTimeModule
,
Serialized FormConstructor and Description |
---|
JSR310Module()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.introspect.AnnotatedMethod |
_findFactory(com.fasterxml.jackson.databind.introspect.AnnotatedClass cls,
String name,
Class<?>... argTypes)
Deprecated.
|
void |
setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
Deprecated.
|
addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setValueInstantiators, version
Copyright © 2014–2015 FasterXML. All rights reserved.