Re: [picocontainer-dev] Pico2: ASM ImplementationHiding ComponentAdapter
Jörg Schaible <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Paul Hammant wrote:
> Jörg,
>
> This to me personifies the issue I had with the old solution :-
>
> http://svn.picocontainer.codehaus.org/browse/picocontainer/java/
> sandbox/baby-steps/nano2/container/src/test/org/nanocontainer/script/
> xml/issues/Issue0170TestCase.java?r1=3351&r2=3373
>
> A component itself, or any components depending on it, could replace
> the implementation if they were cunning enough to find the right
> method. That should be a privilege for containers only.
Well, didn't you forget something?
pico.putComponent(new CachingCA(new HSCA(MyClass.class)));
CA ca = pico.getComponentAdapter(MyClass.class);
How do I swap now?
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email