Monday, April 9, 2012
Manage java property files using Apache Common Configuration API
Recently I did some research on how to manage the java property file in a better way. I found the Apache Common Configuration API is actually really good.
I found the following 3 features are really powerful.
1. Variable interpolation
Like using a variable in Ant, you can use variable in a property file, and Apache Common Configuration API proivide API to expand them on the fly.
2. Include other property files in a property file
check this link for details.
3. combine multiple property file into one property object
details are in here.
I believe above the 3 features will greatly simply the java property file management.