Class JsonPropertyOrderMapper

java.lang.Object
io.micronaut.serde.processor.jackson.ValidatingAnnotationMapper
io.micronaut.serde.processor.jackson.JsonPropertyOrderMapper
All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.inject.annotation.AnnotationMapper<Annotation>, io.micronaut.inject.annotation.NamedAnnotationMapper

public class JsonPropertyOrderMapper extends ValidatingAnnotationMapper
Support for @JsonPropertyOrder.
  • Constructor Details

    • JsonPropertyOrderMapper

      public JsonPropertyOrderMapper()
  • Method Details

    • getSupportedMemberNames

      protected Set<String> getSupportedMemberNames()
      Overrides:
      getSupportedMemberNames in class ValidatingAnnotationMapper
      Returns:
      The set of annotation member names that are supported.
    • mapValid

      protected List<io.micronaut.core.annotation.AnnotationValue<?>> mapValid(io.micronaut.core.annotation.AnnotationValue<Annotation> annotation, io.micronaut.inject.visitor.VisitorContext visitorContext)
      Description copied from class: ValidatingAnnotationMapper
      The transform method will be called for each instances of the annotation returned via this method.
      Specified by:
      mapValid in class ValidatingAnnotationMapper
      Parameters:
      annotation - The annotation values
      visitorContext - The context that is being visited
      Returns:
      A list of zero or many annotations and values to map to
    • getName

      public String getName()