JavaTimeModulesince Jackson 2.7, see above for details on differences in the default configuration.
@Deprecated public final class JSR310Module extends SimpleModule
JavaTimeModulewhich 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
JavaTimeModulemay be consulted for functionality available. The default settings do, however, such that
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 using
JSR310Moduledefaults to serialization WITH Timezone Ids (to support round-trippability of values when using JSR-310 types and Jackson)
JavaTimeModuleby simply reconfiguring it by enabling
SerializationFeature.WRITE_DATES_WITH_ZONE_ID. This class is only retained to keep strict source and binary compatibility.
|Constructor and Description|
|Modifier and Type||Method and Description|
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, version
public void setupModule(Module.SetupContext context)
Copyright © 2019 JBoss by Red Hat. All rights reserved.