This post talks about a better way to retry failed operations in Java using classes in Spring.
Limit Depth of Inheritance in Java
[wp_ad_camp_5] This post demonstrates how to limit the depth of Inheritance in your codes. We will use a class InheritanceUtils from Apache Commons Lang. Inheritance is Evil Yes, inheritance is evil. If we subclass too much in our code base,
Sort Lists in Java 8 using Comparator
This post demonstrates how to use Java 8 Comparator by examples.
JUnit 4 – Run Test Method More than Once
This post demonstrates how to perform repeated tests in JUnit 4 for this post. It involves creating a class that implements the TestRule interface, another class that implements Statement interface and a new annotation.
Find Out the Differences between Two Objects in Java
This post demonstrates how to identify and list the differences between two objects using a set of classes and interfaces from Apache Commons Lang. Classes, Intefaces, and pom.xml The classes and interfaces to be used for this post are as
Clone Objects in Java with Generics using Apache Commons Lang ObjectUtils
This post demonstrates how to clone objects in Java with Generics using Apache Commons Lang ObjectUtils. ObjectUtils [wp_ad_camp_1] ObjectUtils is utility class from Apache Foundation that can be used to clone objects in Java. It is part of a distributable
Access environment variable in Node.js
This short post shows how to access environment variables in Node.js.
Avoid NullPointerException with Stream.ofNullable in Java 9
This post demonstrates how to avoid NullPointerException in Java 9 when working with Stream and using the overloaded of metho
Vagrant – Access Apache2 Web Server on virtual machine from host
This post shows how to configure vagrant to allow access to Apache2 web server (URL to Apache Ubuntu Default Page) running in virtual machine from the host system.
Autowire beans to a List in Spring using Java
This post is about how to auto-wire a set of beans to a list in Spring. Essentially, we need to add @bean’s to an list.