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.DecoderContextNested classes/interfaces inherited from interface io.micronaut.serde.Serializer
Serializer.EncoderContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectdoDeserialize(BsonReaderDecoder decoder, Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object> type) protected voiddoSerialize(BsonWriterEncoder encoder, Serializer.EncoderContext context, Object value, io.micronaut.core.type.Argument<?> type) Methods inherited from class io.micronaut.serde.bson.custom.AbstractBsonSerde
deserialize, serializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.serde.Deserializer
allowNull, createSpecific, deserializeNullable, getDefaultValueMethods inherited from interface io.micronaut.serde.Serializer
createSpecific, isAbsent, isDefault, 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:
doDeserializein 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:
doSerializein classAbstractBsonSerde<Object>- Throws:
IOException
-