On 2010-07-07 15.36, Maik Böhne wrote:
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.
Do you have any idea on why this would not require bytecode
modifications? To me it seems that the mixin support we already have
would cover any trait needs. What am I missing?
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev