Check out the way that jetty shows for tutorial configurations. It's all done in Java code. Now that's interesting. It also accepts XML, which is good, but that's what everybody does.
I like exposing the container in this way. Instead of being forced to provide a config.xml or whatever, you can handle configuration however you'd like. So environment specific values, meta-information about the build, etc. can be determined or brought in programmatically. This seems very flexible to me, and could be customized for just about any need. I'll have to look into this some more.
This is Rob Meyer's weblog, a weblog focused on software development and system administration based on 10 years of experience. Want to explore further? You can find out more me or see the rest of my website.
Wondering if I've written on something in particular? Try searching:
You might want to take a look at some of the more requested postings (as judged by incoming traffic):
Want more? Subscribe to this site
or contact me at rob at big dis dot com.
See my writings on: