Skip to lesson

Project: a mini dependency-injection container

A dependency-injection container is a factory that remembers what it built. Building a small one yourself, in about 150 lines, turns Spring's "magic" into code you can read: a map of factories, a map of singletons and a proxy.

Sign in to continue this lesson

Create an account to read every lesson, practise with the exercises and keep track of your progress.