![]() The service is made part of the client's state. The 'injection' refers to the passing of a dependency (a service) into the client that uses it. Instead of the client specifying which service it will use, the injector tells the client what service to use. The code that passes the service to the client is called the injector. Typically, the receiving object is called a client and the passed-in ('injected') object is called a service. In software engineering, dependency injection is a technique in which an object receives other objects that it depends on, called dependencies.
0 Comments
Leave a Reply. |