Class ObjectArraySerde
java.lang.Object
io.micronaut.serde.support.serdes.ObjectArraySerde
- All Implemented Interfaces:
io.micronaut.core.order.Ordered, Deserializer<Object[]>, FormattedDeserializer<Object[]>, FormattedSerde<Object[]>, FormattedSerializer<Object[]>, Serde<Object[]>, Serializer<Object[]>, DeserializerRegistrar<Object[]>, SerdeRegistrar<Object[]>, SerializerRegistrar<Object[]>, CustomizableDeserializer<Object[]>, CustomizableSerializer<Object[]>
public class ObjectArraySerde
extends Object
implements FormattedSerde<Object[]>, 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 Deserializer
Deserializer.DecoderContextNested classes/interfaces inherited from interface 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.createSpecific(Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object[]> type, FormatConfiguration format) Create a more specific deserializer for the given definition and format configuration.Serializer<Object[]> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends Object[]> type) Create a more specific serializer for the given definition.Serializer<Object[]> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends Object[]> type, FormatConfiguration format) Create a more specific serializer for the given definition and format configuration.io.micronaut.core.type.Argument<Object[]> getType()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CustomizableDeserializer
deserialize, deserializeNullable, getDefaultValueMethods inherited from interface CustomizableSerializer
isAbsent, isEmpty, serializeMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface SerdeRegistrar
getTypesMethods inherited from interface Serializer
isDefault
-
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
-
createSpecific
public Serializer<Object[]> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends Object[]> type, FormatConfiguration format) throws SerdeException Description copied from interface:FormattedSerializerCreate a more specific serializer for the given definition and format configuration.- Specified by:
createSpecificin interfaceFormattedSerializer<Object[]>- Parameters:
context- The encoder contexttype- The type definition including any annotation metadataformat- The format configuration- Returns:
- The more specific serializer
- Throws:
SerdeException- If the serializer cannot be selected
-
createSpecific
public Deserializer<Object[]> createSpecific(Deserializer.DecoderContext context, io.micronaut.core.type.Argument<? super Object[]> type, FormatConfiguration format) throws SerdeException Description copied from interface:FormattedDeserializerCreate a more specific deserializer for the given definition and format configuration.- Specified by:
createSpecificin interfaceFormattedDeserializer<Object[]>- Parameters:
context- The decoder contexttype- The type definition including any annotation metadataformat- The format configuration- Returns:
- The more specific deserializer
- Throws:
SerdeException- If the deserializer cannot be selected
-
getType
- Specified by:
getTypein interfaceDeserializerRegistrar<Object[]>- Specified by:
getTypein interfaceSerdeRegistrar<Object[]>- Specified by:
getTypein interfaceSerializerRegistrar<Object[]>- Returns:
- The serde argument type
-