Comment #5 on issue 519 by crazyboblee: toProvider() should continue to use
Guice's Provider, not JSR-330's
http://code.google.com/p/google-guice/issues/detail?id=519
Users aren't supposed to directly implement javax.inject.Provider.
Making Guice's Provider extend JSR-330's makes things simpler for us (the
Guice implementors), but it makes things more confusing for users. We
should keep them separate.
Ideally, Guice would have two interfaces, Provider and Locator, and we'd
have toLocator() instead of toProvider(). (It used to actually work like
this.) It was a mistake to conflate the two concepts, and we shouldn't make
it worse by tying Guice's Provider to JSR-330's.
--
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.