org.apache.tapestry5.annotations

## Annotation Type Mixin

-     @Target(value=FIELD)
       @Documented
       @Retention(value=RUNTIME)
       @UseWith(value=COMPONENT)
      public @interface Mixin

  Defines an implementation mixin for a component.

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String[]` | `order` Defines an ordering constraint for when the mixin should be applied in relation to other mixins.
    `String` | `value` Defines the type of mixin, using a logical mixin name.

- - ### Element Detail

    - #### value

          public abstract String value

      Defines the type of mixin, using a logical mixin name. This value takes precedence over the type of field (to which the annotation is attached). In such cases, it is presumed that the field's type is an interface implemented by the actual mixin. The default value (the empty string) directs Tapestry to use the field type as the mixin class to instantiate and attach to the component.
      Default:
        ""

  - - #### order

          public abstract String[] order

      Defines an ordering constraint for when the mixin should be applied in relation to other mixins. The string is analagous exactly to the strings used to define ordered contributions. Eg: @Mixin(order={"before:mixina","after:mixinb"}). The ids are mixin names and are case insensitive.
      Since:
        5.2.0.0
      Default:
        {}

5.6.0 - Copyright © 2003-2020 The Apache Software Foundation.