|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moremotion.cache.FileChangeDetector
public class FileChangeDetector
Responsible for registered MoreMotion files change detection.
Method Summary | |
---|---|
void |
addFile(java.io.File f,
FileChangeNotification fcn)
Adds a file. |
void |
addFile(java.io.File f,
FileChangeNotification fcn,
java.io.File rf)
Adds a file. |
void |
finalize()
|
static FileChangeDetector |
getInstance()
Returns a single instance of FileChangeDetector class. |
void |
removeFile(java.io.File f,
FileChangeNotification fcn,
java.io.File rf)
|
void |
run()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FileChangeDetector getInstance()
public void addFile(java.io.File f, FileChangeNotification fcn)
f
- File to be checked for modification.fcn
- FileChangeNotification object which will be called back when the file has been changed.public void addFile(java.io.File f, FileChangeNotification fcn, java.io.File rf)
f
- File to be checked for modification.fcn
- FileChangeNotification object which will be called back when the file has been changed.rf
- Return file. This parameter can be used to group the files so that they are processed if
any of the files in the group changes.public void removeFile(java.io.File f, FileChangeNotification fcn, java.io.File rf)
public void run()
run
in interface java.lang.Runnable
public void stop()
public void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |