Comment #9 on issue 131 by gili.tzabari: partial injection a.k.a. factory  
generation
http://code.google.com/p/google-guice/issues/detail?id=131

I tend to agree that parameter ordering alone was enough for me in the  
past. Then
again, in an ideal world Guice would (somehow) generate the factory for me  
directly
from the constructor prototype. If you had such an automatic mechanism you  
could
automatically add @Named annotations if they were missing by reading the  
parameter
name and using that as the @Named value. I don't think this is technically  
possible
without two compilation phases though...

Alternatively, you could provide an unsafe "Injector.getInstance(Class  
clazz,
Object... arguments)" method and fail at runtime. This would remove any  
sort of CRUD
code at the cost of type safety.

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