Annotation Interface MixIn


@Target(TYPE) @Retention(SOURCE) public @interface MixIn
Marks this Class as a MixIn Type that can add/modify constraint annotations on the specified type.

These types are typically in an external project / dependency or otherwise types that we can't explicitly annotate or modify.

In the example below, the VehicleMixin class augments the the generated Vehicle adapter to add a @NotBlank annotation to the type property.

invalid input: '{@code

   @MixIn(Vehicle.class)
   public abstract class VehicleMixIn {

   @NotBlank
   private String type;
    ...

 }</pre>'
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The concrete type to mix.
  • Element Details

    • value

      Class<?> value
      The concrete type to mix.