Package dev.morphia.mapping.codec
Class ObjectCodec
- java.lang.Object
-
- dev.morphia.mapping.codec.ObjectCodec
-
-
Constructor Summary
Constructors Constructor Description ObjectCodec(Mapper mapper)
Creates a codec
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
void
encode(org.bson.BsonWriter writer, Object value, org.bson.codecs.EncoderContext encoderContext)
Class<Object>
getEncoderClass()
-
-
-
Constructor Detail
-
ObjectCodec
public ObjectCodec(Mapper mapper)
Creates a codec- Parameters:
mapper
- the mapper to use
-
-
Method Detail
-
decode
public Object decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
- Specified by:
decode
in interfaceorg.bson.codecs.Decoder<Object>
-
encode
public void encode(org.bson.BsonWriter writer, Object value, org.bson.codecs.EncoderContext encoderContext)
- Specified by:
encode
in interfaceorg.bson.codecs.Encoder<Object>
-
-