T - The bean type@Internal public final class SimpleObjectSerializer<T> extends java.lang.Object implements Serializer<T>
Serializer.EncoderContext| Constructor and Description |
|---|
SimpleObjectSerializer(io.micronaut.serde.support.serializers.SerBean<java.lang.Object> serBean) |
| Modifier and Type | Method and Description |
|---|---|
void |
serialize(Encoder encoder,
Serializer.EncoderContext context,
io.micronaut.core.type.Argument<? extends T> type,
T value)
Serializes the given value using the passed
Encoder. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSpecific, isAbsent, isEmptypublic SimpleObjectSerializer(io.micronaut.serde.support.serializers.SerBean<java.lang.Object> serBean)
public void serialize(Encoder encoder, Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends T> type, T value) throws java.io.IOException
SerializerEncoder.serialize in interface Serializer<T>encoder - The encoder to usecontext - The encoder context, never nulltype - Models the generic type of the valuevalue - The value, can be nulljava.io.IOException - If an error occurs during serialization