[picocontainer-dev] javax.inject.*

Paul Hammant <[email protected]> Tue, 5 May 2009 16:08:25 -0500
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
http://google-code-updates.blogspot.com/2009/05/javaxinjectinject.html

Last summer Bob, Rod and I met for a lunch to discuss potential for  
commonality, for the DI frameworks that we represent.  We came away  
with more questions than answers.  Since then things move on of  
course, and we* see that Seam is trying to introduce a DI  
specification, and the Guice has made popular the form of DI that  
PicoContainer started many years ago, its Provider<T> style proves  
popular too.  Annotated DI has been introduced by EJB 3.0 (and got  
wrong) and Guice made it better.  All of Spring, Pico and Guice are  
now using annotations, and maybe its smart to settle on a single spec  
for that, to allow component interop.  Also on the table with this JSR  
(and immensely important to me in particular) is the principle of  
Lowest Common Denominator.  For example, Spring folks may suggest that  
XML meta-data is still the correct way to do DI, but the spec leaves  
that open to the container makers and does not force it on the  
component coders.

So we're still going to support components with no annotations, as we  
always did, but it seems smart to settle on this spec's annotations  
for situations where the component coder prefers it.

* I don't know about Bob or Rod, but Seam's attempt to own injection  
at the javax level leaves me with the 'heebie jeebies'.  I'm still  
remembering all the "bi-jection" stuff from a few years ago.

Regards,

- Paul


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email