Java
-

Using regex to hanging indent a paragraph in Java
This post shows how to hanging indent a long paragraph using regular expression. The method will consider word boundaries, which…
Read More » -

Understanding Spring Web Initialization
Few years ago majority of us were used to write XML config files everywhere, to setup even simple Java EE…
Read More » -

Execute Custom queries in Activiti
(This will probably end up in the user guide of the Activiti 5.15 release, but I wanted to share it…
Read More » -

sun.misc.Unsafe and off heap memory
The class sun.misc.Unsafe allows you to many of the things you shouldn’t be able to do in Java, but are…
Read More » -

Using an Embedded Tomcat with Maven tomcat plugin
When developing a java web application using the Eclipse WTP, we need to have an installation of tomcat in the…
Read More » -

Testing Spring components with Mockito
Be able to unit test your spring components without the need of loading the full spring-context with its ad-hoc test…
Read More » -

How to estimate memory consumption?
This story goes back at least a decade, when I was first approached by a PHB with a question “How…
Read More » -

Specifying Gradle Build Properties
Properties are a valuable tool for easily customizing Gradle builds and the Gradle environment. I demonstrate some of these approaches…
Read More » -

Primefaces DataTable Lazy Loading with pagination, filtering and sorting using JPA Criteria, @ViewScoped
Primefaces datatable lazy pagination works, but I was really frustrated after searching for a full example using Criteria in the…
Read More »






