Hello Thomas,
I agree with you that the basic concept could be improved past 1.0 in a way you described earlier. But the current implementation fails basic functionality and I would rather return to a solution as it was in beta-5 than to release the current one. The conversion of SICA to a delegator was with the current Pico implementation only possible because of lacking unit tests. When we improve the complete design and remove the addOrderedComponentAdapter in past 1.0 we might also return to another solution for SICA again. And remember, the current implementation was not released at all, for the released versions SICA is still an ICA, so you don't know how this impacts our users.
If we support SICA for 1.0, we might do that as well as possible, but not with an implementation that fails such basic tests. IMHO we will gain a lot attention releasing 1.0 final and a lot more people will compare Pico with Spring.
So what I am basically saying:
- with the current Pico design it was a bad idea to make SICA a delegator
- return to a similar solution for SICA as in beta-5 at least for 1.0 final
- improve unit tests to ensure basic Pico functionality
nothing of this does mean, that it is carved in stone, but we should do our best for 1.0 final with the current "restriction" of PicoContainer itself.
Regards,
Jörg
It's even worse: Verify is totally useless, since it is just delegated and the CICA does know nothing at all about the setter dependencies ...