Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2005-05-05 01:04:00
Size: 955
Revision 4 as of 2013-11-23 01:23:55
Size: 359
Editor: MonikaBux
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
= Dependency Injection Pattern =

The Dependency Injection Pattern, is described in [http://www.martinfowler.com/articles/injection.html Martin Fowler's article]. It is closely related to the DependencyInversionPrinciple and the so called Inversion of Control (IoC) containers.

IoC is aimed at loosening the coupling of application components. The key concepts are:

 * Components do not know each other directly.
 * Components specify external dependencies using some kind of a key.
 * Some "superior instance" (the IoC container, for example) resolves the dependencies once for each component and hereby "wires" the components together.

It is quite a challenge to implement an IoC container for statically typed languages. In python, however, the core concepts can be implemented quite easily. [http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413268 DependencyInjectionThePythonWay] describes how.

== Discussion ==
My name: Monika Buxton<<BR>>
Age: 23 years old<<BR>>
Country: France<<BR>>
City: [[https://Www.gov.uk/search?q=Moulins|Moulins]] <<BR>>
ZIP: 3000<<BR>>
Street: 66 Rue Des [[http://www.tumblr.com/tagged/Coudriers|Coudriers]]<<BR>>
Also visit my website: [[http://assassinscreedblackflag4.blogspot.com|assassins creed blackflag french download]]

My name: Monika Buxton
Age: 23 years old
Country: France
City: Moulins
ZIP: 3000
Street: 66 Rue Des Coudriers

Also visit my website: assassins creed blackflag french download

DependencyInjectionPattern (last edited 2013-11-23 13:37:52 by tkadm30)

Unable to edit the page? See the FrontPage for instructions.