Class ObjectArraySerde
java.lang.Object
io.micronaut.serde.support.serdes.ObjectArraySerde
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,Deserializer<Object[]>
,Serde<Object[]>
,Serializer<Object[]>
,DeserializerRegistrar<Object[]>
,SerdeRegistrar<Object[]>
,SerializerRegistrar<Object[]>
,CustomizableDeserializer<Object[]>
,CustomizableSerializer<Object[]>
public class ObjectArraySerde
extends Object
implements SerdeRegistrar<Object[]>, CustomizableSerializer<Object[]>, CustomizableDeserializer<Object[]>
Deserializer for object arrays.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Deserializer
Deserializer.DecoderContext
Nested classes/interfaces inherited from interface io.micronaut.serde.Serializer
Serializer.EncoderContext
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
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.Serializer<Object[]>
createSpecific
(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends Object[]> type) Create a more specific serializer for the given definition.io.micronaut.core.type.Argument<Object[]>
getType()
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
Methods inherited from interface io.micronaut.serde.util.CustomizableSerializer
isAbsent, isEmpty, serialize
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
Methods inherited from interface io.micronaut.serde.support.SerdeRegistrar
getTypes
-
Constructor Details
-
ObjectArraySerde
public ObjectArraySerde()
-
-
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
-
createSpecific
public Serializer<Object[]> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends Object[]> type) throws SerdeException Description copied from interface:Serializer
Create a more specific serializer for the given definition.- Specified by:
createSpecific
in interfaceSerializer<Object[]>
- Parameters:
context
- The encoder contexttype
- The type definition including any annotation metadata- Returns:
- The more specific serializer
- Throws:
SerdeException
-
getType
- Specified by:
getType
in interfaceDeserializerRegistrar<Object[]>
- Specified by:
getType
in interfaceSerdeRegistrar<Object[]>
- Specified by:
getType
in interfaceSerializerRegistrar<Object[]>
- Returns:
- The serde argument type
-