Annotation Interface JacksonMixin


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface JacksonMixin
Provides a mixin class implementation that registers with Jackson when using JacksonMixinModule.
Since:
4.0.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 mixin 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.: @JacksonMixin(MyType.class) instead of @JacksonMixin(type=MyType.class).
      Returns:
      the mixed-in classes
      Default:
      {}
    • type

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