Explore libraries that will improve your productivity. In a ’The Java Trove’ series, Andres Almiray shines a light on lesser-known libraries that will help you with your day-to-day programming. In this first article, to demonstrate those new libraries, he uses the scenario of a REST-based API query as a base problem to solve and presents the results in a JavaFX application
Google Guice, an implementation of dependency injection for Java (JSR 330) is his recommendation to best manage dependencies. He suggest the use of Retrofit, a type-safe HTTP client for Java. It reduces repetitions of REST calls by defining a Java API on top of any REST API when building HTTP clients.
Repository POJO combined with Lombok and Jackson will help omit unmapped properties and eliminate boilerplate code. JDeferred, a JQuery-inspired implementation using promises and MBassador, an event bus implementation, enable the execution of background threads, chaining behavior, and notifying data consumers at the appropriate time.
Andres explains each library with code examples. Read the full article.