Menu

#1 caching attribute in xml

open
nobody
None
5
2013-01-06
2004-03-05
Andy V.
No

I would like to suggest an extra feature that would
trigger the reprocessConfig whenever the file has been
changed manually.

That way, if the listeners are correctly implemented, my
application would be using the new configuration right
after I changed and saved the config file.
I could use this for an application that I'm developing in
my free time; this app uses a lot of "rules" that are
defined in a config file. Instead of restarting the
application or adding some sort of refresh-button every
time I change or add a rule, I could just edit the file.

Something like this could do the job:

<configuration reprocessMode="timestamp">

Of course, variations are possible, both in syntax as in
implementation. The easiest way would probably be if
you keep a timestamp of the file each time the method
getValue is called. If the current timestamp differs from
the previous one, then do the reprocess...

Kind Regards,
Andy.

Discussion


Log in to post a comment.