Re: [picocontainer-dev] Jason van Zyl's need for Plexus
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Nice try guys.
I've updated the testcase to even more clearly show Jason's need :-
http://svn.codehaus.org/picocontainer/java/2.x/trunk/pico/
container/src/test/org/picocontainer/adapters/JasonsTestCase.java
He wants to use addComponent(key, impl), not addComponent(key, impl,
ComponentParameter, ComponentParameter, ComponentParameter,
ComponentParameter)
more inline ...
>
> If one truly wants strong-typedness, as Joerg was pointing out, one
> can still maintain the Object as the param class but interpret the
> instance of BindKey internally.
>
Yes, I'm imagining the BindKey is used internally in DPC /
ComponentAdapters for matching purposes.
> Alternatively, the BindKey could be avoided by a convention on the
> Object key String representation.
>
> Defining a new method signature seems very little gain for the
> changes to the API it requires.
No new method signature - can interop with addComnponent(Object, Class)
Regards,
- Paul
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email