Annotation Interface JsonMixin


@Target(TYPE) @Retention(RUNTIME) @Documented @Deprecated(since="4.0.0", forRemoval=true) public @interface JsonMixin
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0.0 for removal in 4.2.0 in favor of Jackson 3 and JacksonMixin.
Provides a mixin class implementation that registers with Jackson when using JsonMixinModule.
Since:
4.0.0
Author:
Guirong Hu
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    The types that are handled by the provided mix-in class.
    Class<?>[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Alias for the type() attribute.
  • Element Details

    • value

      @AliasFor("type") Class<?>[] value
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Default:
      {}
    • type

      @AliasFor("value") Class<?>[] type
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Default:
      {}