On Tuesday 22 July 2008 00:40, Toni Menzel wrote:
> how do i add a mixin/concern to a composite prgrammatically?
> Say i have a composite but one mixin has to be set at assembly time..
> should be possible in my view but Composite or Assembler do not
> provide that in an obvious way..

No. This is not allowed "by design", to improve type-safety and "knowing what 
is going on in runtime".

That said, you can emulate the behavior by having a declared mixin which has a 
mechanism to delegate to a pluggable implementation. This is done for 
instance in the Scripting support libraries, where the mixin just delegate to 
the underlying script implementing the mixin itself.


Cheers
-- 
Niclas Hedhman, Software Developer

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