Inversion Of Control
A very good text titled
Inversion of Control Containers and the Dependency Injection Pattern
can be found at
change from a term describing how I/O is performed in event-driven operating systems and frameworks into a term that means "pass an object's dependencies to the constructor" which is just normal object-oriented programming?
Event driven I/O frameworks are instances of IoC, not the definition. It doesn't mean passing anything to constructors. See
and Martin Fowler's article for more.
IoC, as another term for
, is just passing things to constructors.
So, I suppose I should get rid of all those non-constructor @inject statements in my Java code then.
, they're not IoC or
. No siree. You got me -- I'm caught.
@inject still applies (or is intended to apply) at construction time of the object.
View edit of
April 26, 2012
with title or text search