Annotation Type JsonMixin


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface JsonMixin
Provides a mixin class implementation that registers with Jackson when using JsonMixinModule.
Since:
2.7.0
Author:
Guirong Hu
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    The types that are handled by the provided mix-in class.
    Class<?>[]
    Alias for the type() attribute.
  • Element Details

    • value

      @AliasFor("type") Class<?>[] value
      Alias for the type() attribute. Allows for more concise annotation declarations e.g.: @JsonMixin(MyType.class) instead of @JsonMixin(type=MyType.class).
      Returns:
      the mixed-in classes
      Since:
      2.7.0
      Default:
      {}
    • type

      @AliasFor("value") Class<?>[] type
      The types that are handled by the provided mix-in class. value() is an alias for (and mutually exclusive with) this attribute.
      Returns:
      the mixed-in classes
      Since:
      2.7.0
      Default:
      {}