Added public update() method that checks the file and re-reads properties if necessary.

This commit is contained in:
hns 2003-06-11 13:32:09 +00:00
parent abbb48be8d
commit 96f551142c

View file

@ -97,6 +97,13 @@ public final class SystemProperties extends Properties {
return Math.max(file.lastModified(), lastadd); return Math.max(file.lastModified(), lastadd);
} }
/**
* Update/re-read the properties from file if necessary.
*/
public void update () {
checkFile();
}
/** /**
* Return a checksum that changes when something in the properties changes. * Return a checksum that changes when something in the properties changes.
*/ */