Class JsonbTypeDeserializerBridge
java.lang.Object
io.micronaut.serde.jsonb.JsonbTypeDeserializerBridge
- All Implemented Interfaces:
Deserializer<Object>
@Internal
@Bean(typed=JsonbTypeDeserializerBridge.class)
public final class JsonbTypeDeserializerBridge
extends Object
implements Deserializer<Object>
Bridges
JsonbTypeDeserializer to Micronaut Serialization.-
Nested Class Summary
Nested classes/interfaces inherited from interface Deserializer
Deserializer.DecoderContext -
Method Summary
Modifier and TypeMethodDescriptioncreateSpecific(Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object> type) Create a new child deserializer or return this if non is necessary for the given context.deserialize(Decoder decoder, Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object> type) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Deserializer
deserializeNullable, getDefaultValue
-
Method Details
-
createSpecific
public Deserializer<Object> createSpecific(Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object> type) throws SerdeException Description copied from interface:DeserializerCreate a new child deserializer or return this if non is necessary for the given context.- Specified by:
createSpecificin interfaceDeserializer<Object>- Parameters:
context- The decoder contexttype- The context, including any annotation metadata and type information to narrow the deserializer type- Returns:
- An instance of the same type of deserializer
- Throws:
SerdeException
-
deserialize
public Object deserialize(Decoder decoder, Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object> type) throws IOException Description copied from interface:Deserializer- Specified by:
deserializein interfaceDeserializer<Object>- Parameters:
decoder- The decoder, nevernullcontext- The decoder context, nevernulltype- The generic type to be deserialized- Returns:
- The deserialized object, never
null. UseDeserializer.deserializeNullable(Decoder, DecoderContext, Argument)when the decoder value can benull. - Throws:
IOException- If an error occurs during deserialization of the object
-