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:

    For in all the world there are no people so piteous and forlorn as those who are forced to eat the bitter bread of dependency in their old age, and find how steep are the stairs of another man’s house. Wherever they go they know themselves unwelcome. Wherever they are, they feel themselves a burden. There is no humiliation of the spirit they are not forced to endure. Their hearts are scarred all over with the stabs from cruel and callous speeches.
    Dorothy Dix (1861–1951)