And there is an old proposal around something that was called Abilities, which basically is the Managerable interface that the Manager role needs, but instead of being a "external type" of the PersonEntity, it is a "hidden" one that the role need to summon from the entity...
However, this feature has been pushed to a later version. -- Niclas On 14 Nov 2009 02:24, "Rickard Öberg" <[email protected]> wrote: On 2009-11-13 16.51, Jacek Sokulski wrote: > > 1. Does it mean there is no (much value in) inherita... Correct, you accomplish much of the same thing using mixins. > 2. Does it mean e.g properties one usually expect to find both in > Manager and Employee like na... Correct. > 3. Is there a mechanism to restrict/define what *actual* roles an > entity can play? Or is it t... The easiest way to do it is to separate between Managerable and Manager role, so that a Manager role can only be assigned to an entity that is Managerable. You will VERY rarely (if ever) refer to the actual entity classes, in preferences of using the role interfaces. This makes it easier to read the code and manage dependencies, and also makes it easier to apply roles to various entities. /Rickard _______________________________________________ qi4j-dev mailing list [email protected]...
_______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

