Java
-

Java Annotations – Retention
Consider a Java annotation: public @interface AnAnnotaton { } A class with this annotation applied on it: @AnAnnotaton class AnAnnotatedClass{…
Read More » -

Maven Cargo plugin for Integration Testing
A very common need in the lifecycle of a project is setting up integration testing. Luckily, Maven has built-in support…
Read More » -

A Generic and Concurrent Object Pool
In this post we will take a look at how we can create an object pool in Java. In recent…
Read More » -

Make JFrame transparent
First create a frame that has a slider in it which will be used to set transparency amount. import javax.swing.JFrame;…
Read More » -

Expression Based PathTransitions in JavaFX
In JavaFX you are able to animate nodes along a path using PathTransition objects. PathTransitions use Shape objects to describe…
Read More » -

5 Tips for Unit Testing Threaded Code
Here’s a few tips on how take make testing your code for logical correctness (as opposed to multi-threaded correctness). I…
Read More » -

Java: Choosing the right Collection
Here is a quick guide for selecting the proper implementation of a Set , List , or Map in your application. The best general purpose or…
Read More » -

Common code violations in Java
At work, recently I did a code cleanup of an existing Java project. After that exercise, I could see a…
Read More » -

Apache Digester Example – Make Easy Configuration
Address Problem – Hard Coding , Need to create custom configuration for your application like struts configuration file to vary…
Read More »





