Re: [Geoserver-devel] FileWatcher, avoid unnecessary reloads

2011-06-09 Thread christian . mueller
Last message here concerning building a DOM. On reading I will use the pull parser and only validate if I get an exception. The xsd files are in the GEOSERVER_DATA_DIR/security/..., users can user their own tool for validating if the modify the xml files manually, I will point out this fact in

Re: [Geoserver-devel] FileWatcher, avoid unnecessary reloads

2011-06-09 Thread Andrea Aime
On Thu, Jun 9, 2011 at 11:25 AM, wrote: >> Oh, I thought you were using xstream, which does not build a DOM, >> uses a pull parser which is faster. > > You have the choice, > XStream xstream = new XStream(new DomDriver()); Yep, thought it's a discouraged approach (because it's slow) >> >>> >>>

Re: [Geoserver-devel] FileWatcher, avoid unnecessary reloads

2011-06-09 Thread christian . mueller
Zitat von Andrea Aime : > On Thu, Jun 9, 2011 at 10:47 AM, wrote: >> Please read below >> >> Zitat von Andrea Aime : >> >>> On Thu, Jun 9, 2011 at 6:37 AM,   wrote: This is more a design question: FileWatcher checks for external modifications of a file. But if tgeoserver

Re: [Geoserver-devel] FileWatcher, avoid unnecessary reloads

2011-06-09 Thread Andrea Aime
On Thu, Jun 9, 2011 at 10:47 AM, wrote: > Please read below > > Zitat von Andrea Aime : > >> On Thu, Jun 9, 2011 at 6:37 AM,   wrote: >>> >>> This is more a design question: >>> >>> FileWatcher checks for external modifications of a file. But if >>> tgeoserver code is writing the content of this

Re: [Geoserver-devel] FileWatcher, avoid unnecessary reloads

2011-06-09 Thread christian . mueller
Please read below Zitat von Andrea Aime : > On Thu, Jun 9, 2011 at 6:37 AM, wrote: >> This is more a design question: >> >> FileWatcher checks for external modifications of a file. But if >> tgeoserver code is writing the content of this file itself, how can I >> tell the FileWatcher NOT to ind

Re: [Geoserver-devel] FileWatcher, avoid unnecessary reloads

2011-06-08 Thread Andrea Aime
On Thu, Jun 9, 2011 at 6:37 AM, wrote: > This is more a design question: > > FileWatcher checks for external modifications of a file. But if > tgeoserver code is writing the content of this file itself, how can I > tell the FileWatcher NOT to indicate that the file is modified forcing > an additi

[Geoserver-devel] FileWatcher, avoid unnecessary reloads

2011-06-08 Thread christian . mueller
This is more a design question: FileWatcher checks for external modifications of a file. But if tgeoserver code is writing the content of this file itself, how can I tell the FileWatcher NOT to indicate that the file is modified forcing an additional reload. Proposals 1) add a method setK