Annotation Type Mixin


  • @Target(FIELD)
    @Documented
    @Retention(RUNTIME)
    @UseWith(COMPONENT)
    public @interface Mixin
    Defines an implementation mixin for a component.
    • Optional Element Summary

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

      • value

        java.lang.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

        java.lang.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:
        {}