Java
-

Factory Method pattern in Java
In my previous post about the Template Method pattern, I showed how one can leverage lambda expression and default methods.…
Read More » -

Java EE CDI Dependency Injection (@Inject) tutorial
In this tutorial we shall show you how to achieve Dependency Injection in CDI managed Beans. In particular, we shall…
Read More » -

Auditing entities in Spring Data MongoDB
Spring Data MongoDB 1.2.0 silently introduced new feature: support for basic auditing. Because you will not find too much about…
Read More » -

Spring Integration File Polling and Tests
I recently implemented a small project where we had to poll a folder for new files and then trigger a…
Read More » -

Persistent breakpoints every java developer should have
When a developer is working in Java there are a few failure cases you always want to know about even…
Read More » -

Spring from the Trenches: Adding Validation to a REST API
I am a bit ashamed to admit this but until yesterday, I had no idea that I can add validation…
Read More » -

Experiment with ConcurrentHashmap
I am investigating a memory issue in one of my recent projects where data is kept in memory for fast…
Read More » -

Accessing An Artifact’s Maven And SCM Versions At Runtime
You can easily tell Maven to include the version of the artifact and its Git/SVN/… revision in the JAR manifest…
Read More » -

Parsing XML using DOM, SAX and StAX Parser in Java
I happen to read through a chapter on XML parsing and building APIs in Java. And I tried out the…
Read More »




