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

Thats exactly right Jose. So you can create a Module which defines  
injection points
using whatever annotations you like; be they standards (JSR 250, EJB3,  
JAX-WS,
JAX-RS, Servlet 3) or your own application specified injection points - then
associate a provider of values to that injection point. This allows the  
provider to
be able to reuse context (such as the field/method name, type or attributes  
of the
annotation) to figure out how to create the values.

It also opens up Guice to be a possible dependency injection engine within  
these
various frameworks (JAX-RS / EJB3 / Servlet 3 etc) rather than framework  
developers
having to write their IoC engine.

I'm sure lots of frameworks would be happy to just reuse Guice as their  
preferred IoC
implementation - rather than forcing their users to scrap JAX-WS / JAX-RS /  
EJB3 /
Servlet 3 and adopt Guice's one true set of annotations - or  drop Guice  
entirely and
just use Spring (which does provide an easy mechanism to write your own  
injection
points).


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