JAX London, 4–7 October 2021
The Conference for Java & Software Innovation

Let’s Build our own Dependency Injection Framework!

This talk originates from the archive. To the CURRENT program
Until June 24: ✓ Workshops day for free ✓ Save up to £470 Register now
Wednesday, October 7 2020
12:00 - 12:45

Most developers have experience with dependency injection (DI), whether it’s with Spring, Google Guice or CDI. But how many developers actually know how these frameworks make this magic happen? Or how dependency injection works in general? I, for one, didn’t have a clue. That’s the reason I built the Injectinator: my own DI implementation for Java SE. Creating the Injectinator has taught me a lot about DI and how the “magic” happens.

In this talk I will show the audience how Java reflection works, and how they can harness its capabilities to create their own dependency injection framework. The following subjects will be covered:

– Reflection in Java

– Inversion of Control

– What is Dependency Injection?

– Types of Dependency InjectionAll of this will be demonstrated with a live demo.

After this talk you will have a better understanding of how a DI framework works and you should be able to build your own DI framework.

Behind the Tracks

Software Architecture & Design
Software innovation & more
Architecture structure & more
Agile & Communication
Methodologies & more
Emerging Technologies
Everything about the latest technologies
DevOps & Continuous Delivery
Delivery Pipelines, Testing & more
Cloud & Modern Infrastructure
Everything about new tools and platforms
Big Data & Machine Learning
Saving, processing & more