On Sat, Oct 25, 2008 at 02:22, Richard Wallace <[EMAIL PROTECTED]> wrote: > On Fri, Oct 24, 2008 at 10:20 AM, Edward Yakop <[EMAIL PROTECTED]> > wrote: > Ah I see what you're getting at. But even in your original suggestion, what > do you do if you need to have the origin and destination injected into the > mixin, likely for some kind of calculation?
The mixin? If the mixin is: * Implementors of a mixin type that expose origin and destination: The existing mechanism takes the method name as the field name. @AssociationField private Association<Location> origin; @AssociationField private Association<Location> destination; * Mixin that wants to access origin and destination: According to http://www.qi4j.org/220.html Private Mixin = When a @This injection refers to a Mixin Type which is not extended by the Composite type that becomes a private Mixin Type. Other mixin needs to declare: @This Cargo meAsCargo; and invoke meAsCargo.origin() and meAsCargo.destination() respectively. Regards, Edward Yakop _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

