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,Serializable
Deprecated.
Older version of
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
- New
JavaTimeModuleuses 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
JSR310Moduledefaults 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.
- Since:
- 2.2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.Module
Module.SetupContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetupModule(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, versionMethods inherited from class com.fasterxml.jackson.databind.Module
getDependencies
-
Constructor Details
-
JSR310Module
public JSR310Module()Deprecated.
-
-
Method Details
-
setupModule
Deprecated.Description copied from class:SimpleModuleStandard 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:
setupModulein classSimpleModule
-
JavaTimeModulesince Jackson 2.7, see above for details on differences in the default configuration.