java   dependency   injection

Build your own Dependency Injection Framework

Written by Rohit Pal

Dependency Injection is very useful for most projects and allows us to create our dependencies easily and makes the development process seamless

Dependency Injection is very useful for most projects and allows us to create our dependencies easily and makes the development process seamless.

Join us, where we will be creating a Dependency Injection framework from scratch with the least amount of libraries possible. We would be exploring Java's Reflection and creating our dependency resolution strategy to resolve bean (object) resolution.

Hope this exploration and building framework will help you understand the internals of reflection and how dependency injection works in Spring Framework.

This small container can be easily used to create Dependency Injection in. your own projects, embeddable in any project, and if you are writing a lean library too, this journey would be worthwhile.