serviceloader

Kick-Off Java 9 (Project Jigsaw & ServiceLoader) Part – II

Reading Time: 3 minutes Java  comes with major changes and new surprises for developers. Major changes came in  Java 5 and Java 8, but now Java 9 will come with new mysteries and changes. In the last post we were discussing about Java 9 with Jigsaw and in another post we were using ServiceLoader in Java instead of dependencies injections. Java 9 gives us a clean way for using Continue Reading

Play With Java ServiceLoader forget about Dependency Injection(DI) Frameworks

Reading Time: 2 minutes In most of the applications we are using Dependency Injection for loosely couple of our code. Some time, we just require simple DI, nothing else, for those, we need to include some of our DI frameworks like Spring, Google Guice etc. This makes our project jar heavy and added some unnecessary classes as well. For all these, Java itself have a ServiceLoader class for inject Continue Reading