Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## 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
`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.

### value

    public abstract 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

    public abstract 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:
    {}

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2003-2012 The Apache Software Foundation.