Package org.mongojack.internal
Class ObjectIdSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<InputType>
-
- org.mongojack.TransformingEmbeddedObjectSerializer<T,T>
-
- org.mongojack.internal.EmbeddedObjectSerializer
-
- org.mongojack.internal.ObjectIdSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class ObjectIdSerializer extends EmbeddedObjectSerializer
Serializer for object ids, serialises strings or byte arrays to an ObjectId class- Since:
- 1.0
- Author:
- James Roper
-
-
Field Summary
-
Fields inherited from class org.mongojack.TransformingEmbeddedObjectSerializer
writeNullAsNull
-
-
Constructor Summary
Constructors Constructor Description ObjectIdSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
-
Methods inherited from class org.mongojack.internal.EmbeddedObjectSerializer
transform, writeEmbeddedObject
-
-
-
-
Method Detail
-
serialize
public void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
- Overrides:
serialize
in classEmbeddedObjectSerializer
- Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-
-