bineanzhou / google-guice

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

@ProvidedBy @Singleton doesn't work #251

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It should provide a single instance.

The rules for @ProvidedBy and annotations don't need to be the same as for
@ImplementedBy, where scoping conflicts could be problematic. For
@ProvidedBy the scopes don't conflict.

Original issue reported on code.google.com by limpbizkit on 26 Sep 2008 at 5:12

GoogleCodeExporter commented 9 years ago
also for @RequestScoped. i assume @ProvidedBy doesn't work with any scope 
annotations and always uses NO_SCOPE? 

a simple junit test is attached.

Original comment by ori.schw...@gmail.com on 14 Jul 2011 at 6:34

Attachments:

GoogleCodeExporter commented 9 years ago
Any chance this is fixed in Guice 4.0? Just ran into this for a servlet filter.

Original comment by Ben.Manes@gmail.com on 17 Sep 2013 at 9:00