Zurück zur Skill-Übersicht

CDI Freelancer & Experten für dein Projekt

Kategorie

Backend

Skill-Umfeld

Was ist CDI?

In software engineering, dependency injection is a programming technique in which an object or function receives other objects or functions that it requires, as opposed to creating them internally. 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 that 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 makes implicit dependencies explicit and helps solve the following problems:

Dieser Text basiert auf dem Artikel Contexts and Dependency Injection aus der freien Enzyklopädie Wikipedia und steht unter der Lizenz Creative Commons CC BY-SA 4.0. Eine Liste der Autoren ist in der Wikipedia verfügbar.