Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
/**
* Supports serializing Ion to POJO and back using the Jackson Ion framework.
*
* Direct serialization to and from IonValue fields is supported. The POJO can declare fields subclassing IonValue and
* the direct value will be provided.
* Direct serialization to and from IonValue fields is supported. The POJO can declare fields of type IonValue (or a
* subclass) and the direct value will be provided.
*
* Enums are serialized as symbols by default.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@

import software.amazon.ion.Timestamp;

class IonValueModule extends SimpleModule {
/**
* A module which allows for the direct serialization to and from IonValue fields. The POJO can declare fields of type
* IonValue (or a subclass) and the direct value will be provided.
*/
public class IonValueModule extends SimpleModule {

private static final long serialVersionUID = 1L;

IonValueModule() {
public IonValueModule() {
super("IonValueModule", PackageVersion.VERSION);
addSerializer(new TimestampSerializer());
addSerializer(new IonValueSerializer());
Expand Down