Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ion] Make IonValueModule public for use outside of IonValueMapper #102

Merged
merged 1 commit into from
Aug 4, 2017
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