What does dependency injection mean?

Definitions for dependency injection
de·pen·den·cy in·jec·tion

This dictionary definitions page includes all the possible meanings, example usage and translations of the word dependency injection.

Wiktionary

  1. dependency injectionnoun

    A process of supplying an external dependency to a software component.

Wikipedia

  1. Dependency injection

    In software engineering, dependency injection is a design pattern in which an object or function receives other objects or functions that it depends on. A form of inversion of control, dependency injection aims to separate the concerns of constructing objects and using them, leading to loosely coupled programs. The pattern ensures that an object or function which wants to use a given service should not have to know how to construct those services. Instead, the receiving 'client' (object or function) is provided with its dependencies by external code (an 'injector'), which it is not aware of. Dependency injection helps by making implicit dependencies explicit and helps solve the following problems: How can a class be independent from the creation of the objects it depends on? How can an application, and the objects it uses support different configurations? How can the behavior of a piece of code be changed without editing it directly?In addition, dependency injection is used for keeping code in-line with the dependency inversion principle.Fundamentally, dependency injection consists of passing parameters to a method.Because the client does not build or find the service itself, it typically only needs to declare the interfaces of the services it uses, rather than their concrete implementations. This makes it easier to change which services are actually used at runtime, especially in statically-typed languages where changing the underlying objects would otherwise require re-compiling the source code. An example of inversion of control without dependency injection is the template method pattern, where polymorphism is achieved through subclassing. In contrast, dependency injection implements inversion of control through composition, and is often similar to the strategy pattern. A difference is that the strategy pattern is intended for dependencies that are interchangeable throughout an object's lifetime, whereas with dependency injection typically only a single instance of a dependency is used.

Wikidata

  1. Dependency injection

    Dependency injection is a software design pattern that allows removing hard-coded dependencies and making it possible to change them, whether at run-time or compile-time. This can be used, for example, as a simple way to load plugins dynamically or to choose stubs or mock objects in test environments vs. real objects in production environments. This software design pattern injects the depended-on element 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. One of its core principles is the separation of behavior from dependency resolution.

How to pronounce dependency injection?

How to say dependency injection in sign language?

Numerology

  1. Chaldean Numerology

    The numerical value of dependency injection in Chaldean Numerology is: 5

  2. Pythagorean Numerology

    The numerical value of dependency injection in Pythagorean Numerology is: 5


Translations for dependency injection

From our Multilingual Translation Dictionary

  • निर्भरता अन्तःक्षेपणHindi
  • iniezione di dipendenzaItalian
  • சார்பு ஊசிTamil
  • డిపెండెన్సీ ఇంజెక్షన్Telugu
  • ฉีดพThai

Get even more translations for dependency injection »

Translation

Find a translation for the dependency injection definition in other languages:

Select another language:

  • - Select -
  • 简体中文 (Chinese - Simplified)
  • 繁體中文 (Chinese - Traditional)
  • Español (Spanish)
  • Esperanto (Esperanto)
  • 日本語 (Japanese)
  • Português (Portuguese)
  • Deutsch (German)
  • العربية (Arabic)
  • Français (French)
  • Русский (Russian)
  • ಕನ್ನಡ (Kannada)
  • 한국어 (Korean)
  • עברית (Hebrew)
  • Gaeilge (Irish)
  • Українська (Ukrainian)
  • اردو (Urdu)
  • Magyar (Hungarian)
  • मानक हिन्दी (Hindi)
  • Indonesia (Indonesian)
  • Italiano (Italian)
  • தமிழ் (Tamil)
  • Türkçe (Turkish)
  • తెలుగు (Telugu)
  • ภาษาไทย (Thai)
  • Tiếng Việt (Vietnamese)
  • Čeština (Czech)
  • Polski (Polish)
  • Bahasa Indonesia (Indonesian)
  • Românește (Romanian)
  • Nederlands (Dutch)
  • Ελληνικά (Greek)
  • Latinum (Latin)
  • Svenska (Swedish)
  • Dansk (Danish)
  • Suomi (Finnish)
  • فارسی (Persian)
  • ייִדיש (Yiddish)
  • հայերեն (Armenian)
  • Norsk (Norwegian)
  • English (English)

Word of the Day

Would you like us to send you a FREE new word definition delivered to your inbox daily?

Please enter your email address:


Citation

Use the citation below to add this definition to your bibliography:

Style:MLAChicagoAPA

"dependency injection." Definitions.net. STANDS4 LLC, 2024. Web. 25 Apr. 2024. <https://www.definitions.net/definition/dependency+injection>.

Discuss these dependency injection definitions with the community:

0 Comments

    Are we missing a good definition for dependency injection? Don't keep it to yourself...

    Image or illustration of

    dependency injection

    Credit »

    Free, no signup required:

    Add to Chrome

    Get instant definitions for any word that hits you anywhere on the web!

    Free, no signup required:

    Add to Firefox

    Get instant definitions for any word that hits you anywhere on the web!

    Browse Definitions.net

    Quiz

    Are you a words master?

    »
    transmitting light; able to be seen through with clarity
    A busy
    B tight
    C transparent
    D obnoxious

    Nearby & related entries:

    Alternative searches for dependency injection: