Package io.micronaut.serde.bson.custom
Class BsonRepresentationSerde
- java.lang.Object
-
- io.micronaut.serde.bson.custom.AbstractBsonSerde<java.lang.Object>
-
- io.micronaut.serde.bson.custom.BsonRepresentationSerde
-
- All Implemented Interfaces:
io.micronaut.serde.Deserializer<java.lang.Object>,io.micronaut.serde.Serde<java.lang.Object>,io.micronaut.serde.Serializer<java.lang.Object>,io.micronaut.serde.util.NullableDeserializer<java.lang.Object>,io.micronaut.serde.util.NullableSerde<java.lang.Object>
@Singleton public final class BsonRepresentationSerde extends AbstractBsonSerde<java.lang.Object>
CustomBsonTyperepresentation serializer/deserializer.
-
-
Constructor Summary
Constructors Constructor Description BsonRepresentationSerde()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ObjectdoDeserializeNonNull(BsonReaderDecoder decoder, io.micronaut.serde.Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super java.lang.Object> type)protected voiddoSerialize(BsonWriterEncoder encoder, io.micronaut.serde.Serializer.EncoderContext context, java.lang.Object value, io.micronaut.core.type.Argument<?> type)-
Methods inherited from class io.micronaut.serde.bson.custom.AbstractBsonSerde
deserializeNonNull, serialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
doDeserializeNonNull
protected java.lang.Object doDeserializeNonNull(BsonReaderDecoder decoder, io.micronaut.serde.Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super java.lang.Object> type) throws java.io.IOException
- Specified by:
doDeserializeNonNullin classAbstractBsonSerde<java.lang.Object>- Throws:
java.io.IOException
-
doSerialize
protected void doSerialize(BsonWriterEncoder encoder, io.micronaut.serde.Serializer.EncoderContext context, java.lang.Object value, io.micronaut.core.type.Argument<?> type) throws java.io.IOException
- Specified by:
doSerializein classAbstractBsonSerde<java.lang.Object>- Throws:
java.io.IOException
-
-