On Fri, 04 Aug 2006 13:43:14 GMT, Michael Feathers
<mf*******@objectmentor.comwrote:
>I'd like to write a dependency injection framework that doesn't place
many constraints on the types it manages. I suspect that it would
be easier to use setter-based injection and something like
Alexandrescu's GenLinearHierarchy, but I was wondering if there is
a way to do constructor injection.
In Java DI is usually implemented with interfaces. You do them same in
C++ with abstract base classes. WRT the 'arity of constructors' have
you considered default arguments?
Best regards,
Roland Pibinger