Monthly Archives: July 2009

SPRING Quick Tip: Setting application property values dynamically!

Spring provides a very cool feature of passing application property values dynamically using the java -D switch. All you need to do is define the property in the properties file and leave the value part blank. When you run the … Continue reading

Posted in Java, Quick Tips, Spring | Tagged , | Leave a comment

A simple way to list/filter files

Here is a very simple and elegant way to list or filter the files in a given directory. For this use the File.listFiles() method of java.io.File class. The example below deletes all the files that end with the “.tmp” extension. … Continue reading

Posted in Java | Tagged , | Leave a comment