Hi!

As we technically only need Traits to implement DCI and not Mixins I
would like to have them in Qi4J.
To compare Mixins with traits: Mixins basically have state, Traits
don’t. So they are just pure interfaces in java.
This is quite an important difference, as traits could be implemented easier.

Beside the DCI usecase I would like to see Traits in Qi4J because it
should be possible to implement
them without modifying bytecode. That would allow to use this feature
on restricted devices!
As an aside note: In one of latest projects i had to work with an
embedded java solution that
not complety supports java 1.5 (lacking most of the cool features)
so that in the end Qi4J had no chance to run on this device because of
ASM/CGLIB usage.

So what do you think about an @Roles annotation to accompany the
mixins definition with @Mixins
Do you like that?

--Maik

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to