Hi,
I am currently converting an existing application to Guice. To simplify the
migartion, I'd like to do somehing like
Foo someInstance;
Provider<Foo> myProvider = new Provider<Foo>(){
Foo get() { return someInstance; }
}
binder.bind(IFoo.class).toProviderInstance(myProvider);
Is that possible?
Thanks,
Jochen
--
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.