Guten Tag Joseph Southwell, > am Freitag, 21. Februar 2014 um 16:36 schrieben Sie: > >> Actually this gives me an idea for a future feature. What if we >> made it so changing settings while a configureAndWatch is active >> updated the settings file itself? We could make it an option to >> configureAndWatch. Anybody else like that idea? > > I don't see it's worth the effort, there's simply to much around it > like properly formatting the configuration in the file, dealing with > comments, maybe even different encodings, simply the fact that the > file doesn't contain the data for reason because the configuration is > e.g. versioned and the other runtime configuration comes from an > environment etc. > > From my opinion the better approach is to simply provide a callback > which gets called before and/or after the configuration changes issued > by the watchdog. In this callback one can do whatever is necessary.
I like the callback idea. It is easier to implement and it will for sure cover this user’s use case. My original idea suffers from the inability to support the case where you don’t want to change the config file for some reason. Such as sharing a config file with multiple applications. > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning E-Mail:thorsten.schoen...@am-soft.de > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ > > Telefon...........05151- 9468- 55 > Fax...............05151- 9468- 88 > Mobil..............0178-8 9468- 04 > > AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln > AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow > Joseph Southwell jos...@southwell.org The past is history, The future's a mystery, The present's a gift.
signature.asc
Description: Message signed with OpenPGP using GPGMail