Constructor over-injection anti-pattern

added by ali62b
1/22/2010 10:30:03 AM

18 Kicks, 660 Views

I’m interested in structure. We hear lots of talk about convention over configuration. I’m all for structure over convention (over configuration). This post is about laying out some code that is an anti-pattern. It uses 100% constructor injection. This code makes it easy for a container to bootstrap the construction of the objects, but let’s take a look at why this specific scenario is an anti-pattern and what design would be better.


0 comments