Dependency Injection

Handing a component its collaborators rather than letting it find them.

1 subject · 2 topics

Subjects covering this category

1 subject
  • Subject · Beginner to Advanced

    Wiring a Java application together with Spring's IoC container, instead of doing it by hand.

    • Why Spring Exists
    • The Bean and the Container
    • Wiring Beans Together
    4 topics · 25 cardsnot started

In Dependency Injection itself

2 topics
  • Getting your dependencies handed to you — by constructor, and by name when there's more than one candidate.

    7 cards · 5 qnot started
  • Why Spring hands you your dependencies instead of you building them yourself.

    5 cards · 4 qnot started