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.DecoderContextNested 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
Constructors -
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, waitMethods inherited from interface io.micronaut.serde.util.CustomizableDeserializer
allowNull, deserialize, deserializeNullable, getDefaultValueMethods inherited from interface io.micronaut.serde.util.CustomizableSerializer
isAbsent, isEmpty, serializeMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods 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: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
-
createSpecific
public Serializer<Object[]> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends Object[]> type) throws SerdeException Description copied from interface:SerializerCreate a more specific serializer for the given definition.- Specified by:
createSpecificin interfaceSerializer<Object[]>- Parameters:
context- The encoder contexttype- The type definition including any annotation metadata- Returns:
- The more specific serializer
- Throws:
SerdeException
-
getType
- Specified by:
getTypein interfaceDeserializerRegistrar<Object[]>- Specified by:
getTypein interfaceSerdeRegistrar<Object[]>- Specified by:
getTypein interfaceSerializerRegistrar<Object[]>- Returns:
- The serde argument type
-