-
Enterprise Java
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 » -
Enterprise Java
Spring Bean names
Spring bean names are straightforward, except for cases where names are not explicitly specified. To start with, Spring bean names…
Read More » -
Enterprise Java
Spring Data JPA and pagination
Let us start with the classic JPA way to support pagination. Consider a simple domain class – A ‘Member’ with…
Read More » -
Enterprise Java
Mixin in Java with Aspects – for a Scala traits sample
Scala traits allow new behaviors to be mixed into a class. Consider two traits to add auditing and version related…
Read More » -
Enterprise Java
Spring Property Placeholder Configurer – A few not so obvious options
Spring’s PropertySourcesPlaceholderConfigurer is used for externalizing properties from the Spring bean definitions defined in XML or using Java Config. There…
Read More » -
Enterprise Java
Spring MVC – Customizing RequestMappingHandlerMapping
When Spring MVC is configured using <mvc:annotation-driven/> in an xml bean definition file, internally a component called RequestMappingHandlerMapping gets registered…
Read More » -
Core Java
JUnit test method ordering
Junit until version 4.10 uses the order of test methods in a test class as returned by the reflection API…
Read More » -
Enterprise Java
Json deserialization with Jackson and Super type tokens
Datatables is a jquery plugin to present tabular information – it can enhance a simple table or can use a…
Read More » -
Core Java
Composing Java annotations
The allowed attribute types of a Java annotations are deliberately very restrictive, however some clean composite annotation types are possible…
Read More »