Comment #24 on issue 258 by james.strachan: [Patch] custom annotation based  
injection points
http://code.google.com/p/google-guice/issues/detail?id=258

Gili - its a shame you think my comments are silly though I'm not exactly  
sure what
it was you were referring to.

FWIW my motivation for this patch was not because I dislike using  
com.google.* - its
that I like being able to support *existing* popular standards like JSR 250  
/ EJB3
annotations (e.g. @Resource / @PreDestroy / @PostCommit) which are very  
widely used.
They are the nearest thing we have to IoC standards right now. (@Resource  
is kinda a
standard version of guice's proprietary @Name). Most popular standards  
define some
kind of IoC annotations these days (JSR 250, EJB3, JPA, JAX-RS, JAX-WS,  
WebBeans etc).

If you work solely inside your corporate firewall and don't have to share  
code with
customers you probably don't care about standards - but many of us outside  
the
googleplex do I'm afraid and for something as pervasive at so many layers  
as IoC
standards are a good thing IMHO.

FWIW many other IoC containers have supported these annotations for *years*  
(e.g.
Spring) as well as letting anyone, easily add any kind of annotation  
processor to
encourage innovation.

For some reason supporting standards that people actually use seems kinda  
against the
insular Not Invented Here Google way. Looks like its Spring and JavaConfig  
for me
going forward (which is pretty good too - and fully supports JSR 250 & EJB3  
already
and is super easy to extend to support custom annotation injections).

Its a shame as Guice was really close to being a contender as a really  
popular IoC
framework outside of Google. Fingers crossed for Guice 3 in, what, 2012?  
Though I've
a feeling it'll be game over by then and folks will just use Spring  
JavaConfig
(assuming Java is still popular by then :)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to