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
  • Spring Core

    Wiring beans together: constructor injection, stereotype annotations, choosing between two candidates, and @Bean methods.

    Intermediate to Advanced7 cards · 5 qnot started

  • Spring Core

    Dependency injection: why a class should be handed its dependencies instead of creating them, shown without Spring first.

    Beginner5 cards · 4 qnot started