pombreda / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 1 forks source link

MapBinder does not allow for javax.inject.Provider #734

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the description of MapBinder, it states "In addition to binding Map<K, V>, a 
mapbinder will also bind Map<K, Provider<V>> for lazy value provision."

I had a class using this provision because the values were being bound within a 
scope.

But when I changed my imports from com.google.inject.Provider to 
javax.inject.Provider, the bindings broke.

Please allow javax.inject.Providers as well or document that it *must* be 
declared as guice Provider.

Original issue reported on code.google.com by michael....@gmail.com on 5 Nov 2012 at 9:47

GoogleCodeExporter commented 9 years ago
Michael

Thank you for raising this - I couldn't get it to work because I try to 
standardise on javax annotations.  Now I can ...

Original comment by david.so...@gmail.com on 16 Dec 2012 at 11:51

GoogleCodeExporter commented 9 years ago

Original comment by sberlin on 6 Dec 2013 at 10:53