Status: New
Owner: ----

New issue 669 by [email protected]: LinkedBindingBuilder#toConstructor(Constructor, TypeLiteral) is not adequately documented
http://code.google.com/p/google-guice/issues/detail?id=669

The purpose of LinkedBindingBuilder#toConstructor(Constructor, TypeLiteral), and in particular the meaning of the second parameter, is not adequately documented. The javadoc just says "See the EDSL examples at Binder", but there is no example there.

Reading the code, I see that the TypeLiteral supplies the type arguments for the object so that Guice can correctly compute the actual types of the object's dependencies and thereby choose the correct bindings to satisfy them. That makes sense in retrospect, but it wasn't obvious.

--
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