Comment by dreamtennis:

If I create a provider and bind it to a class, like this
{{{
bind(MyClass.class).toProvider(MyClassProvider.class)
}}}
will `Provider<MyClass>` automatically be bound to `MyClassProvider`? In other words, would the following injection
{{{
@Inject
public Foo(Provider<MyClass> myClassProvider)
}}}
be satisfied with an instance of `MyClassProvider`?


For more information:
http://code.google.com/p/google-guice/wiki/InjectingProviders
-- 
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" 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-dev?hl=en.


Reply via email to