Create Your Own IoC / Dependency Container From Scratch (Java) Part Three - Create Service Instances

Опубликовано: 10 Май 2025
на канале: Cyecize
1,094
26

In this video series I am showing how to create your own IoC Container from the ground up without any third party libraries.

Link to Part Two:
   • Create Your Own IoC / Dependency Cont...  
Link to Part Four:
   • Create Your Own IoC / Dependency Inje...  

Link to Github:
https://github.com/Cyecize/Magic-IoC-...

In order for the video to be more understandable, I have split the development process into 5 main sub tasks.

In this Part we are covering the fourth(from 5 total) sub task which is instantiating mapped services and beans.

So in this video I am working on the actual instantiation of the mapped services from the previous task.
Here you can see how dependency resolving actually works.

Note that there is another way of doing it which is with recursion, but for our case this is an easier way since otherwise we would have to keep track of too many things.