Interface FormattedSerializer<T>

Type Parameters:
T - The type to be serialized
All Superinterfaces:
Serializer<T>
All Known Subinterfaces:
FormattedSerde<T>, NumberSerde<N>, TemporalSerde<T>
All Known Implementing Classes:
DefaultFormattedTemporalSerde, InstantSerde, LocalDateSerde, LocalDateTimeSerde, LocalTimeSerde, ObjectArraySerde, OffsetDateTimeSerde, YearSerde, ZonedDateTimeSerde

public interface FormattedSerializer<T> extends Serializer<T>
A serializer that can react to format metadata.
Since:
3.0
Author:
Denis Stepanov
  • Method Details

    • createSpecific

      default Serializer<T> createSpecific(Serializer.EncoderContext context, io.micronaut.core.type.Argument<? extends T> type, FormatConfiguration format) throws SerdeException
      Create a more specific serializer for the given definition and format configuration.
      Parameters:
      context - The encoder context
      type - The type definition including any annotation metadata
      format - The format configuration
      Returns:
      The more specific serializer
      Throws:
      SerdeException - If the serializer cannot be selected