|
|
Inversion of ControlIn computer programming, Inversion of Control (IOC), or also called Dependency Injection is a popular Object-oriented programming principle which inverts the way an object gets its dependencies. Currently it is very popular in the Java programming language world. An object has depedencies: other objects it needs in order to function. Normally either the software or the object itself would make sure that everything was in place in order to function. Either it creates the object it needs internally or it is given to it by another object. IOC inverts this pattern. It checks what an object needs in order to function, and 'injects' those dependencies into the object. A slogan used to descibe this is ''Don't call us, we'll call you'' (known as the Hollywood Principle). Dependencies can be resolved by type, by name or any other criteria. Usually Inversion of Control is done in an Inversion of Control Container. The software requests an object from the container and the container builds the object and its dependencies. Examples of these (Java programming language) containers are [http://picocontainer.org/ PicoContainer], [http://www.springframework.org/ Spring] (note that spring is a complete enterprise platform, not just an IOC container) and [http://excalibur.apache.org/ Excalibur]. ==External links== *Article "[http://martinfowler.com/articles/injection.html Inversion of Control Containers and the Dependency Injection pattern]" by Martin Fowler *[http://docs.codehaus.org/display/PICO/Inversion+of+Control Another description of IOC] *Article "[http://theserverside.com/articles/article.tss?l=IOCandEJB Examining the Validity of Inversion of Control]" by Sony Mathew *Article "[http://www.sys-con.com/story/?storyid=38102&DE=1 Inversion of Control Rocks]" by Paul Hammant *[http://java-source.net/open-source/containers Open Source Inversion of Control Containers] *[http://www.picocontainer.org/Inversion+of+Control Inversion of Control] Inversion of control#REDIRECT Inversion of Control See other meanings of words starting from letter: IIA | IB | IC | ID | IE | IF | IG | IH | IJ | IK | IL | IM | IN | IO | IP | IR | IS | IT | IU | IW | IX | IY | IZ |Words begining with Inversion_of_Control: Inversion_of_Control Inversion_of_control |
These materials are based on Wikipedia and licensed under the GNU FDL
YouTube.com videos better site than Turbo Tax 2007 |
|
|