Are we using IoC effectively?
- by Juliet
So my company uses Castle Windsor IoC container, but in a way that feels "off":
All the data types are registered in code, not the config file.
All data types are hard-coded to use one interface implementation. In fact, for nearly all given interfaces, there is and will only ever be one implementation.
All registered data types have a default constructor, so Windsor doesn't instantiate an object graph for any registered types.
The people who designed the system insist the IoC container makes the system better. We have 1200+ public classes, so its a big system, the kind where you'd expect to find a framework like Windsor. But I'm still skeptical.
Is my company using IoC effectively? Is there an advantage to new'ing objects with Windsor than new'ing objects with the new keyword?