Handling dependency injection using Java 9 modularity | Technology inside World Handling dependency injection using Java 9 modularity ~ Technology inside World

Leaderboard

Breaking News

Handling dependency injection using Java 9 modularity

How to decouple your Java code using a mix of dependency injection, encapsulation, and services.

In this post we will look at how we can mix the Java 9 module system, dependency injection and services to accomplish decoupling between modules.

It’s almost hard to imagine a Java code base without the use of a dependency injection framework. And for good reason, dependency injection can help a lot with achieving decoupling. Decoupling is about hiding implementations. Decoupling is key to make code maintainable and easy to extend. In Java, this effectively comes down to programming against interfaces instead of concrete types.

Continue reading Handling dependency injection using Java 9 modularity.



from All - O'Reilly Media http://ift.tt/2Dk18bb

No comments