On Mon, Feb 9, 2009 at 7:22 PM, deanlaw wrote: > > I have some application configuration variables defined in my > ColdSpring file and I can pull from them using the GetConfigSettings() > method. However, I was wondering if there is a way to update those > values via a SetConfigSetting() method? I know that the > ModelGlue.Bean.CommonBeans.SimpleConfig class does not have this > method, but does anyone know an alternative way of updating one or > more of my loaded config values?
You'll have to either A) add a setconfigsetting method to to that simple config, or else write your own config object. FWIW, I vote we add a setConfigSetting to that simple config object. It's come up a couple of times. Course, I voted for that ages ago, and was shot down. Had I not been shot down, there would be *two* less requests for this in the last 2 years! :-) I appreciate the idea that we should have a MG-agnostic config bean, but, if you're doing a MG-specific app (which of course no one should, but of course many are, just because water flows downhill), man, it's nice to use existing MG functionality. Eh. Anyways, the easy solve is to add the set function to the simple config, the slightly (and it's pretty slight) harder solve is to write your own config bean. I reckon. :den -- Silence is the virtue of fools. Francis Bacon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en For more about Model-Glue, check http://www.model-glue.com . -~----------~----~----~----~------~----~------~--~---
