Annotation Interface Serdeable.Deserializable

Enclosing class:
Serdeable

@Retention(RUNTIME) @Introspected public static @interface Serdeable.Deserializable
Annotation used to indicate a type is deserializable.
  • Element Details

    • using

      @AliasFor(annotation=SerdeConfig.class, member="deserializerClass") Class<? extends Deserializer> using
      Returns:
      The deserializer.
      Default:
      io.micronaut.serde.Deserializer.class
    • validate

      @AliasFor(annotation=SerdeConfig.class, member="validate") boolean validate
      Returns:
      Whether build time validation should fail compilation on definition errors.
      Default:
      true
    • as

      @AliasFor(annotation=SerdeConfig.class, member="deserAs") Class<?> as
      Use the given class to deserialize this type.
      Returns:
      A type that is a subclass of the annotated type.
      Default:
      void.class
    • naming

      @AliasFor(annotation=SerdeConfig.class, member="naming") Class<? extends PropertyNamingStrategy> naming
      Returns:
      Naming strategy to use.
      Default:
      io.micronaut.serde.config.naming.IdentityStrategy.class