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

Regarding java.util.List vs. com.ibm.ArrayList: I agree, and I think that  
@Inject in
this regard definitely is an interface.

Regarding "no such standard exists today" - read top post.

Regarding Hibernate vs. JPA etc: One may argue that one is there today, and  
that
Guice would make more people happy if it supported this seemingly simple
customization option. (Have you read Joel's piece about how Excel won when  
it
implemented /export/ filters? Maybe something like that would happen here  
too -
people would feel safer when they COULD get out of google's claws if they  
wanted)

IMO, there is no argument about whether Guice is "intrusive". It is: One  
have to
annotate the code, specifically importing guice/google-specifics. Spring  
isn't: One
use a completely external configuration. This is a bit sad.

Annotating with standard annotations, or failing that, with project-specific
annotations, would be nearly the same as no external dependencies. If  
several
injection containers implemented the standard annotations, or/and such a  
pluggable
annotation processing, one would again be free in that one could change the
container: Either by just changing it (if one used standards), or by doing  
the
container-specific customization to process the project-specific  
annotations. There
is value here - stating otherwise undermines all those success stories of  
how one
changed from Spring to Guice in a matter of hours. There is one hurdle  
left: The
semantics of the IoC annotations - but at least for simple cases, which  
most probably
is the majority, this is probably not very hard.

--
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