Talk:Dependency injection/Archives/2017/July

UML class and sequence diagram
I would like to share the following UML diagrams I have published on Design Patterns Open Online Learning. Your comments are welcomed!

In the above UML class diagram, the  class that requires  and   objects doesn't instantiate the   and   classes directly. Instead, an  class creates the objects and injects them into the, which makes the   independent of how the objects are created (which concrete classes are instantiated). The UML sequence diagram shows the run-time interactions: The  object creates the   and   objects. Thereafter, the  creates the   object and injects the  and   objects.

Vanderjoe (talk) 12:31, 9 July 2017 (UTC)