Dependency injection: Difference between revisions

Content deleted Content added
Removing this newly-added part about DI being used as a "creational pattern". This is going to need a WP:RS -- looking for books here, not opinions shared on Twitter. Current literature on creational patterns doesn't mention this use case.
WikiCleanerBot (talk | contribs)
m v2.05b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation)
Line 9:
In [[Statically typed language|statically-typed languages]] the client typically declares the [[Interface (computing)|interfaces]] of the services it uses, rather than their concrete implementations, making it easier to change which services are actually used at runtime without recompiling.
 
Application frameworks often combine Dependency Injection with [[Inversion_of_control|Inversion of Control]]. The framework first constructs the object, and then passes control to it.<ref>{{Cite web |title=Spring IoC Container |url=https://docs.spring.io/spring-framework/docs/3.2.x/spring-framework-reference/html/beans.html |access-date=2023-05-23 |language=en}}</ref>.
 
== Roles ==