Package org.mongojack.internal.stream
Class JacksonEncoder<T>
- java.lang.Object
-
- org.mongojack.internal.stream.JacksonEncoder<T>
-
- All Implemented Interfaces:
org.bson.codecs.Encoder<T>
public class JacksonEncoder<T> extends Object implements org.bson.codecs.Encoder<T>
-
-
Constructor Summary
Constructors Constructor Description JacksonEncoder(Class<T> clazz, Class<?> view, com.fasterxml.jackson.databind.ObjectMapper objectMapper, org.bson.UuidRepresentation uuidRepresentation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(org.bson.BsonWriter writer, T value, org.bson.codecs.EncoderContext encoderContext)
Class<T>
getEncoderClass()
JacksonEncoder<T>
withUuidRepresentation(org.bson.UuidRepresentation uuidRepresentation)
-
-
-
Method Detail
-
withUuidRepresentation
public JacksonEncoder<T> withUuidRepresentation(org.bson.UuidRepresentation uuidRepresentation)
-
encode
public void encode(org.bson.BsonWriter writer, T value, org.bson.codecs.EncoderContext encoderContext)
- Specified by:
encode
in interfaceorg.bson.codecs.Encoder<T>
-
-