Issue 257: @Named shortcut could use parameter's name
http://code.google.com/p/google-guice/issues/detail?id=257

New issue report by limpbizkit:
We could use ParaNamer to provide a simple shorthand for the named
annotation. For example, we could reduce boilerplate in this class from  
this:
   class Foo {
     @Inject @Named("a") String a;
     @Inject @Named("b") String b;

     @Inject
     Foo(@Named("c") String c, @Named("d") String d) {}
   }

to this:
   class Foo {
     @Inject @Named String a;
     @Inject @Named String b;

     @Inject
     Foo(@Named String c, @Named String d) {}
   }

Admittedly, the savings is marginal.
http://paranamer.codehaus.org/


Issue attributes:
        Status: New
        Owner: limpbizkit
        Labels: Type-Enhancement Priority-Low

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