Added public update() method that checks the file and re-reads properties if necessary.
This commit is contained in:
parent
abbb48be8d
commit
96f551142c
1 changed files with 7 additions and 0 deletions
|
@ -97,6 +97,13 @@ public final class SystemProperties extends Properties {
|
|||
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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue