bind(Foo.class).toProvider(Providers.of(myFoo));
On Tue, Jul 30, 2013 at 2:17 PM, Ryan Golbeck <[email protected]> wrote: > At https://code.google.com/p/google-guice/wiki/Injections it says > toInstance bindings are injected when the injector is created. In some > cases I'm binding an instance that's already been injected or initialized > in another manner and guice is overwriting the previous values when it sets > up the injector. > > Is there anyway to prevent a toInstance binding from being injected? > > Thanks, > -ryan > > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
