Niclas Hedhman wrote:
On Mon, Aug 24, 2009 at 10:34 AM, Rickard Öberg<[email protected]> wrote:

Not off the top of my head, no. One problem would be if you register Zout
*and* Habba and then ask for Habba and get Zout. That is undesirable, since
you would prefer to get the specific one that you asked for.

That would still be an ambiguity and an exception would occur, right?

But you don't *want* an ambiguity in this case. If there is a specific type registered, and you asked for that particular one, then even if a subtype is registered you should get the one you asked for. Only if you ask for mixin types (i.e. it's a "role-oriented lookup") should the "best fit" algo be applied, I think.

/Rickard

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

Reply via email to