|
From: roger h. <apo...@sn...> - 2003-11-19 01:29:07
|
Rob I think you'll find Listable properties are available using: http://www.springframework.org/docs/api/org/springframework/web/context/supp ort/StaticWebApplicationContext.html Roger "Rob Butler" <rob...@ve...> wrote in message news:002201c3ae36$316e11f0$0802a8c0@coderhp... > Hello all, > > I was looking over the Spring code and it doesn't appear as if there is > support for a ListableWebApplicationContext. i.e. a WebApplicationContext > that uses property files instead of XML. Shouldn't this be added to the > framework? > > The ContextLoader already supports using a parameter to select a different > WebApplicationContext implementation, so adding > ListableWebApplicationContext support shouldn't be too difficult. It would > be nice if the ContextLoader were modified to try the > XmlWebApplicationContext first, and if that is not found to try the > ListableWebApplicationContext. In that way if either of the two Spring > provided WebApplicationContexts were used they would be found automatically. > > I would like ListableWebApplicationContext support because I plan on holding > my configuration data in a database and then have the database generate the > property files. It's easier to have the database write out property files > than XML. At the moment I don't want the properties obtained directly from > the database. But, now that I mention it, JdbcWebApplicationContext support > should be added to the framework too, just to be complete. > > Why would I want to do any of this? Ah, that is the subject of a future > e-mail... More to come. > > Later > Rob > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ |