On Sun, Aug 24, 2014 at 7:57 AM, Maatary Okouya <[email protected]>
wrote:

> *I have the following on the guice website with few explanation:*
>
> *  @Provides @Singleton*
> *  TransactionLog provideTransactionLog() {*
> *    ...*
> *  }*
>
> *Is that the solution. Does the singleton apply to the provider or the
> provided. If it applies to the provider then, the solution would be to
> retain one instance and return it each time. But that would not work with a
> provide method.*
> *Any help ?*
>

Yes, @Singleton does what you want.

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-guice/CAFrMXy%3D7scd74N3gspiOqVYQPOoST4pB46RFYQUmYMBEtO%3DvdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to