I have gone ahead and committed this. It is defintily an implementation that we have been needing! Could you maybe look at the Simian report. there are a couple duplications listed, that I think look like they could be extracted into their own method without being too confusing.
ERic > -----Original Message----- > From: Emmanuel Bourg [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 17, 2004 7:48 PM > To: Jakarta Commons Developers List > Subject: [configuration] DatabaseConfiguration > > > I have written a configuration implementation that uses a database to > store the properties. It supports 2 table structures : > - one table per configuration (2 colums key/value) > - one table for multiple configurations (2 columns key/value > + 1 column > for the name of the configuration) > > The names of the tables and columns are specified in the constructor, > for example : > > Configuration config = new DatabaseConfiguration(datasource, > "configuration", "key", "value"); > > There is no caching mechanism, I wonder if it should be > implemented into > the class or separately as a decorator. > > Comments are welcome :) > > Emmanuel Bourg > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
