Status: New
Owner: ----

New issue 543 by eric.poitras: Constructor injection
http://code.google.com/p/google-guice/issues/detail?id=543

There is a rule saying :

1 - Look at a constructor annotated with @Inject. If so, select it.
2 - Look at a no-parameter constructor. If so select it.
3 - Throw an exception.

Is there a reason for rule 2 not to be:

2 - If there is only one public constructor (may it have parameters), select it.

It would be nice for Guice to be able to instanciate classes that have only one constructor without having to annotate them with @Inject.

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