Comment by Leigh.Klotz:

How can I use @Assisted with Strings (or other distinct parameters of the  
same type)?

If you use AssistedInject and declare two String parameters, you may have  
seen an error of the form
   A binding to java.lang.String annotated with  
@com.google.inject.assistedinject.Assisted(value=) was already configured  
at ...

To use multiple parameters of the same type, use a named @Assisted  
annotation with a String value to disambiguate the parameters.

See com.google.inject.assistedinject.FactoryProvider for documentation and  
examples.




For more information:
http://code.google.com/p/google-guice/wiki/FrequentlyAskedQuestions

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