Dependency Injection

Dependency injection is a software design pattern that allows a choice of component to be made at run-time rather than compile time. This can be used, for example, as a simple way to load plugins dynamically or to choose mock objects in test environments vs. real objects in production environments. This software design pattern injects the depended-on element (object or value etc) to the destination automatically by knowing the requirement of the destination. Another pattern, called dependency lookup, is a regular process and reverse process to dependency injection.

Read more about Dependency Injection:  Definition, Motivation, Basics, Code Illustration Using Java, Benefits, Types

Famous quotes containing the word dependency:

    Fate forces its way to the powerful and violent. With subservient obedience it will assume for years dependency on one individual: Caesar, Alexander, Napoleon, because it loves the elemental human being who grows to resemble it, the intangible element. Sometimes, and these are the most astonishing moments in world history, the thread of fate falls into the hands of a complete nobody but only for a twitching minute.
    Stefan Zweig (18811942)