xiaodududu / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Patch for /tags/3.0/core/src/com/google/inject/internal/InjectorImpl.java #625

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Patch to allow automatic construction and member injection of arbitrary types 
with arbitrary parameters for the constructor. The method would have to be 
added to the Injector interface, and ToolStageInjector would have to throw an 
exception similar to the one it throws for injectMembers() already

Original issue reported on code.google.com by peter.la...@gmail.com on 27 Apr 2011 at 2:43

Attachments:

GoogleCodeExporter commented 9 years ago
There's nothing in this patch that is specific to Guice or requires modifying 
Guice.  It is better left as a static method somewhere in your code.

Original comment by sberlin on 3 May 2011 at 2:35