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 public final class JSR310Module extends SimpleModule
Deprecated.Replaced byJavaTimeModulesince Jackson 2.7, see above for details on differences in the default configuration.Older version ofJavaTimeModulewhich 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 forJavaTimeModulemay 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)
JavaTimeModuleby 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 voidsetupModule(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: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
-
-