12.3. Beyond This Book
There are many other ways to configure a program. Configuration information can be stored in property files, which is suitable for settings consisting of name/value pairs. Configuration information can also be stored in a database. This approach could be used in conjunction with OJB to create objects that have already been properly configured, much as Digester does from the XML description. It would even be possible to combine the two approaches by creating a loadFromDatabase rule that populates a configuration object from a database based on a primary key.In the final analysis configuration is a very important aspect of any large program but should not comprise a significant portion of the code or consume much developer time. Using either of the tools discussed in this chapter allows developers to quickly move past configuration and into the more interesting parts of a project.