Annotation Interface Serdeable.Serializable

Enclosing class:
Serdeable

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

    • using

      @AliasFor(annotation=SerdeConfig.class, member="serializerClass") Class<? extends Serializer> using
      Returns:
      The Serializer to use.
      Default:
      io.micronaut.serde.Serializer.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="serAs") Class<?> as
      Use the given class to serialize 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