A daily dose of software engineering wisdom - inspiring, thought provoking, and sometimes just plain dangerous.

Tags: inversionofcontrol design

Inversion Of Control

Also called the HollywoodPrinciple ('Don't call us we'll call you').

Objects implement an interface and register themselves, and get called when the time is right. Used mostly by GUIs (event driven).

In software design this pattern is used to facilitate unit testing and produces designs with less coupling. Instead of an object creating the objects it needs or fetching them itself, they are provided to it, either in the constructor, via a mutator, or as a parameter to the call.

See: http://c2.com/cgi/wiki?HollywoodPrinciple

Last published: Monday 24th October 2011

<<Previous     Next>>

carriagereturn.org home