JavaTimeModule since Jackson 2.7, see above for
details on differences in the default configuration.@Deprecated public final class JSR310Module extends 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 FormModule.SetupContext_abstractTypes, _deserializerModifier, _deserializers, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version| Constructor and Description |
|---|
JSR310Module()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected AnnotatedMethod |
_findFactory(AnnotatedClass cls,
String name,
Class<?>... argTypes)
Deprecated.
|
void |
setupModule(Module.SetupContext context)
Deprecated.
Standard implementation handles registration of all configured
customizations: it is important that sub-classes call this
implementation (usually before additional custom logic)
if they choose to override it; otherwise customizations
will not be registered.
|
_checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setValueInstantiators, versionpublic void setupModule(Module.SetupContext context)
SimpleModulesetupModule in class SimpleModuleprotected AnnotatedMethod _findFactory(AnnotatedClass cls, String name, Class<?>... argTypes)
Copyright © 2018 JBoss by Red Hat. All rights reserved.