Class JSR310Module
- java.lang.Object
-
- com.fasterxml.jackson.databind.Module
-
- com.fasterxml.jackson.databind.module.SimpleModule
-
- com.fasterxml.jackson.datatype.jsr310.JSR310Module
-
- All Implemented Interfaces:
Versioned
,java.io.Serializable
@Deprecated public final class JSR310Module extends SimpleModule
Deprecated.Replaced byJavaTimeModule
since Jackson 2.7, see above for details on differences in the default configuration.Older version ofJavaTimeModule
which was the default choice up to Jackson 2.5, but was obsoleted in 2.6 byJavaTimeModule
. Functionality does not differ between the two modules (at least in 2.6), so Javadocs forJavaTimeModule
may be consulted for functionality available. The default settings do, however, such that- New
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 usingSerializationFeature.WRITE_DATES_WITH_ZONE_ID
- Old
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 enablingSerializationFeature.WRITE_DATES_WITH_ZONE_ID
. This class is only retained to keep strict source and binary compatibility.- Since:
- 2.2.0
- See Also:
Jsr310NullKeySerializer
,JavaTimeModule
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.Module
Module.SetupContext
-
-
Constructor Summary
Constructors Constructor Description JSR310Module()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.-
Methods inherited from class com.fasterxml.jackson.databind.module.SimpleModule
addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setSerializerModifier, setSerializers, setValueInstantiators, version
-
Methods inherited from class com.fasterxml.jackson.databind.Module
getDependencies
-
-
-
-
Method Detail
-
setupModule
public void setupModule(Module.SetupContext context)
Deprecated.Description copied from class:SimpleModule
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.- Overrides:
setupModule
in classSimpleModule
-
-