Class ObjectDeserializer
java.lang.Object
io.micronaut.serde.support.deserializers.ObjectDeserializer
- All Implemented Interfaces:
Deserializer<Object>
,CustomizableDeserializer<Object>
@Internal
public class ObjectDeserializer
extends Object
implements CustomizableDeserializer<Object>
Implementation for deserialization of objects that uses introspection metadata.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer
Deserializer.DecoderContext
-
Constructor Summary
ConstructorDescriptionObjectDeserializer
(SerdeIntrospections introspections, DeserializationConfiguration deserializationConfiguration, @Nullable SerdeDeserializationPreInstantiateCallback preInstantiateCallback) Deprecated.ObjectDeserializer
(SerdeIntrospections introspections, DeserializationConfiguration deserializationConfiguration, SerdeConfiguration serdeConfiguration, @Nullable SerdeDeserializationPreInstantiateCallback preInstantiateCallback) -
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.<T> io.micronaut.serde.support.deserializers.DeserBean<T>
getDeserializableBean
(io.micronaut.core.type.Argument<T> type, Deserializer.DecoderContext decoderContext) 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.util.CustomizableDeserializer
allowNull, deserialize, deserializeNullable, getDefaultValue
-
Constructor Details
-
ObjectDeserializer
public ObjectDeserializer(SerdeIntrospections introspections, DeserializationConfiguration deserializationConfiguration, SerdeConfiguration serdeConfiguration, @Nullable @Nullable SerdeDeserializationPreInstantiateCallback preInstantiateCallback) -
ObjectDeserializer
@Deprecated public ObjectDeserializer(SerdeIntrospections introspections, DeserializationConfiguration deserializationConfiguration, @Nullable @Nullable SerdeDeserializationPreInstantiateCallback preInstantiateCallback) Deprecated.- Parameters:
introspections
-deserializationConfiguration
-preInstantiateCallback
-
-
-
Method Details
-
createSpecific
public Deserializer<Object> createSpecific(Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object> type) throws SerdeException Description copied from interface:Deserializer
Create a new child deserializer or return this if non is necessary for the given context.- Specified by:
createSpecific
in 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
-
getDeserializableBean
public <T> io.micronaut.serde.support.deserializers.DeserBean<T> getDeserializableBean(io.micronaut.core.type.Argument<T> type, Deserializer.DecoderContext decoderContext) throws SerdeException - Throws:
SerdeException
-