...
An instance mixin is a mixin applied to a specific instance of a component. This can be done in the component template with the mixins attribute of the <comp> element. This is a comma-separated list of mixin names.
Alternately, when the Component annotation is used to define the component type, you may specify the mixins in two ways:
- The Mixins annotation allows a list of mixin names to be specified.
- The MixinClasses annotation allows a set of mixin class to be specified directly.
The former is often less verbose, and allows core mixins to be overridden with application-specific mixins. The later format is more specific and more friendly in terms of refactoring (renaming a mixin class will rename the entry in the MixinClasses annotation as well).
...
Implementation mixins, mixins which apply to all isntances of a component, are added using the Mixin annotation. This annotation defines a field that will containg the mixin instance.
...
Exception: Mixins whose class is annotated with MixinAfter are ordered after the component, not before.