PeteGashek / puzzlebazar

Automatically exported from code.google.com/p/puzzlebazar
0 stars 0 forks source link

Use factories for injected types that require construction parameters #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A couple of types participate in dependency injection but also require 
construction parameters. For the moment, we're using an ugly "bind" method. 
It would be much better to define factories, in the fashion described in:
http://code.google.com/p/google-guice/wiki/AssistedInject

GIN doesn't support @AssistedInject yet, so we'll do it the Factory way:
http://code.google.com/p/google-gin/issues/detail?id=15

Original issue reported on code.google.com by philippe.beaudoin on 28 Mar 2010 at 4:40

GoogleCodeExporter commented 9 years ago

Original comment by philippe.beaudoin on 28 Mar 2010 at 5:54