Re: @Provides, Providers (and singleton objects vs factories)...

2014-10-22 Thread 'Christian Gruber' via google-guice
At one point in the early days of Dagger we toyed with the idea of using the term @Contributes instead of @Provides as part of cleaming the terminology up. Using @Bind or @Binds would also be good. We stayed with @Provides because it was a known quantity and not _that_ confusing. Guice, of

Re: @Provides, Providers (and singleton objects vs factories)...

2014-10-17 Thread Tim Peierls
On Thu, Oct 16, 2014 at 7:19 PM, Kevin Burton burtona...@gmail.com wrote: I humbly propose that these concepts are rather confusing in Guice @Provides vs Providers They both use similar mechanisms... IE providing the value of an object, but they do it differently and the semantics are

@Provides, Providers (and singleton objects vs factories)...

2014-10-16 Thread Kevin Burton
I humbly propose that these concepts are rather confusing in Guice @Provides vs Providers They both use similar mechanisms... IE providing the value of an object, but they do it differently and the semantics are confusing. Also, Providers can provide either one object, or many...