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

setKnownLastModified(long lastModified)

2) add a method

write(T object)

which deserializes the object and adjusts the internal last modified  
timestamp.

Proposal 2 has another advantage. It is possible to detect conflicts  
if the file was changed externally and internally, throwing a proper  
IOException.

What do you think ?.










----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to