Package io.micronaut.serde.bson.custom
Class BsonRepresentationSerde
java.lang.Object
io.micronaut.serde.bson.custom.AbstractBsonSerde<Object>
io.micronaut.serde.bson.custom.BsonRepresentationSerde
- All Implemented Interfaces:
Deserializer<Object>
,Serde<Object>
,Serializer<Object>
Custom
BsonType
representation serializer/deserializer.- Author:
- Denis Stepanov
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer
Deserializer.DecoderContext
Nested classes/interfaces inherited from interface io.micronaut.serde.Serializer
Serializer.EncoderContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
doDeserialize
(BsonReaderDecoder decoder, Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object> type) protected void
doSerialize
(BsonWriterEncoder encoder, Serializer.EncoderContext context, Object value, io.micronaut.core.type.Argument<?> type) Methods inherited from class io.micronaut.serde.bson.custom.AbstractBsonSerde
deserialize, serialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.serde.Deserializer
allowNull, createSpecific, deserializeNullable, getDefaultValue
Methods inherited from interface io.micronaut.serde.Serializer
createSpecific, isAbsent, isEmpty
-
Constructor Details
-
BsonRepresentationSerde
public BsonRepresentationSerde()
-
-
Method Details
-
doDeserialize
protected Object doDeserialize(BsonReaderDecoder decoder, Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object> type) throws IOException - Specified by:
doDeserialize
in classAbstractBsonSerde<Object>
- Throws:
IOException
-
doSerialize
protected void doSerialize(BsonWriterEncoder encoder, Serializer.EncoderContext context, Object value, io.micronaut.core.type.Argument<?> type) throws IOException - Specified by:
doSerialize
in classAbstractBsonSerde<Object>
- Throws:
IOException
-