A Java geek
  • Me
  • Books
  • Speaking
  • Mentions
  • Focus
  • Newsletters

inversion of control

A collection of 3 posts
Back to basics: Dependency Injection
Java

Back to basics: Dependency Injection

After years of near-ubiquitous usage of Dependency Injection, I see more and more posts and talks questioning its value. Some even go to the point where they argue against it. Most of it however is based on a whole lot of misconceptions, half-truths and blatant lies. In this post, I’d like to go back to the roots of DI, describe some related features and lists available frameworks.

Aug 26, 2018
Java Service Loader vs Spring Factories Loader
Java

Java Service Loader vs Spring Factories Loader

Inversion of Control is not only possible at the class level, but at the module level. OSGi has been doing it for a long time. However, there are IoC approaches directly available in Java, as well as in Spring. Out-of-the-box, the Java API offers a specific form of Inversion of Control. It’s implemented by the Service Loader class.

Apr 30, 2017
Method injection with Spring
Java

Method injection with Spring

Spring core comes out-of-the-box with two scopes: singletons and prototypes. Singletons implement the Singleton pattern, meaning there’s only a single instance at runtime (in a JVM). Spring instantiate them during context creation, caches them in the context, and serves them from the cache when needed (or something like that). Prototypes are instantiated each time you access the context to get the bean.

Jul 29, 2012
A Java geek © 2008-2026
v. 8469dfb85e650fbf59112dd9359084a0b8fa2f6b/13500437904
Latest Posts