Open GoogleCodeExporter opened 9 years ago
If you would like fancier abilities in your factories, such as converting the
factory
parameter to something else, consider manually implementing your factory to do
it &
constructing the dependent class. Injecting a factory is an OK solution as
opposed
to injecting the "direct dependency". The factory is essentially your direct
dependency, because it's required to get at the dependency.
Original comment by sberlin
on 2 May 2010 at 12:29
Original issue reported on code.google.com by
ogregoire
on 3 Sep 2009 at 8:26