On Aug 31, 2010, at 3:53 AM, Moandji Ezana wrote: > On Tue, Aug 31, 2010 at 3:50 AM, Bob Lee <[email protected]> wrote: > bind(MyInterface.class).toProvider(MyProvider.class).in(Scopes.SINGLETON); > > Isn't it also possible to annotate the provider itself?
That I didn't try. However, the instance I want to be a singleton is the instance the Provider is returning rather than the Provider itself. In my case it doesn't matter it the Provider is a singleton or not. -bp -- You received this message because you are subscribed to the Google Groups "google-guice" 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?hl=en.
