T
- @Internal public class CodecBsonDecoder<T> extends AbstractBsonSerde<T>
Codec
.Serializer.EncoderContext
Deserializer.DecoderContext
Constructor and Description |
---|
CodecBsonDecoder(org.bson.codecs.Codec<T> codec) |
Modifier and Type | Method and Description |
---|---|
protected T |
doDeserializeNonNull(BsonReaderDecoder decoder,
Deserializer.DecoderContext decoderContext,
io.micronaut.core.type.Argument<? super T> type) |
protected void |
doSerialize(BsonWriterEncoder encoder,
Serializer.EncoderContext context,
T value,
io.micronaut.core.type.Argument<? extends T> type) |
deserializeNonNull, serialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSpecific, isAbsent, isEmpty
allowNull, deserialize
createSpecific, getDefaultValue
public CodecBsonDecoder(org.bson.codecs.Codec<T> codec)
protected T doDeserializeNonNull(BsonReaderDecoder decoder, Deserializer.DecoderContext decoderContext, io.micronaut.core.type.Argument<? super T> type)
doDeserializeNonNull
in class AbstractBsonSerde<T>
protected void doSerialize(BsonWriterEncoder encoder, Serializer.EncoderContext context, T value, io.micronaut.core.type.Argument<? extends T> type)
doSerialize
in class AbstractBsonSerde<T>