Kotlin and CDI
The IoC and dependency injection patterns are very important design principles that decouple the code from dependent objects. If we have two objects that are related to each other, one might be dependent on the other. The idea of the IoC and dependency injection patterns is to decouple this dependency so that the two objects are not tied to one another.
The Java frameworks that implement the IoC principle are Seam and Spring. Seam is a set of utilities used for web development that was integrated in the Java EE specification in order to provide dependency injection. Spring has implemented IoC and is represented by the Spring IoC container (ApplicationContext). The Spring container is responsible for instantiating, configuring, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access