> > I mean dynamic control, i.e. one Person entity may play Manger role >> other not (although it has potentially this ability). Another point is >> dynamic roles composition: a person can play possible hundreds of roles, >> but from the application point of view only several are interesting, but >> as the application evolves new ones will be needed. How can I add a new >> role to person entity without changing the existing code? >> > > But that is the same: you let a Person implement Managerable role, and in > that you have methods to determine if the particular instance is allowed to > play the Manager role, and if so can register/create instances of that Role. > The class defines possible roles and instances have actual role. > > When you add more roles, yes, you do change the existing code. So what? > What is the problem with that?
I can have no no access to existing code or I do customisation for many clients and want to have minimal delta from the baseline or want to have extensible library. Jacek
_______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

