Re: [picocontainer-dev] Bug or feature?
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
On Nov 25, 2007, at 6:03 AM, Konstantin Priblouda wrote:
>
> container.addComponent(Map.class,MyStartable.class);
> container.addComponent("glumBlam",HashMap.class);
> assertSame(container.getComponent("glumBlam"),
> container.getComponent(Map.class));
The real bug here (your first case) is that MyStartable is not a map
at all.
You should not be able to register it.
Or more specifically, if the key is a type, the impl should be
isAssignableFrom in respect of the key.
- Paul
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email