I’m curious as to what other people use in the Java world for configuring their applications. I’ve previously used Spring’s PropertyPlaceHolderConfigurer and PropertyOverrideConfigurer to load various properties files and bind them using the default Spring property editors.
This is a perfectly acceptable solution for what I’ve done, but I wondered is there was a better alternative for application configuration that somebody has used?
If you have used a better approach could you provide a list of advantages of using a Spring approach. Many thanks in advance.
You could also try something like Constretto, which handles different environments (test, acceptance, production etc) a little more gracefully.
Before diving into Constretto also be advised that Spring 3.0 is changing this landscape quite dramatically, with spring-el being the first thing that comes to mind. Even today the documentation spring 3.0-M3 reveals quite a lot.