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