On Tue, Nov 17, 2009 at 5:23 PM, Jacek Sokulski <[email protected]> wrote:

>> 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.

I still think that you can do the other way around as well;

@Mixins( ManagerMixin.class )
public interface Manager extends Employee
{
:
}

to accomplish the same. By doing the above, if the ManagerMixin
implements any of the methods in Employee then those implementations
takes precedence over the mixins declared on the Employee type.


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

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

Reply via email to