|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.util.FileMonitor
public class FileMonitor
Replaces inner class Reloader in AbstractOGCServlet.
AbstractOGCServlet
,
File.lastModified()
,
Java Tip 125 Nested Class Summary | |
---|---|
(package private) class |
FileMonitor.FileMonitorTask
|
Constructor Summary | |
---|---|
protected |
FileMonitor()
|
Method Summary | |
---|---|
void |
addFileChangeListener(FileChangeListener listener,
java.lang.String fileName,
long period)
Add a monitored file with a FileChangeListener. |
protected void |
fireFileChangeEvent(FileChangeListener listener,
java.lang.String fileName)
|
static FileMonitor |
getInstance()
Factory method to get singleton instance. |
void |
removeFileChangeListener(FileChangeListener listener,
java.lang.String fileName)
Remove the listener from the notification list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FileMonitor()
Method Detail |
---|
public static FileMonitor getInstance()
public void addFileChangeListener(FileChangeListener listener, java.lang.String fileName, long period) throws java.io.FileNotFoundException
listener
- listener to notify when the file changed.fileName
- name of the file to monitor.period
- polling period in milliseconds.
java.io.FileNotFoundException
public void removeFileChangeListener(FileChangeListener listener, java.lang.String fileName)
listener
- the listener to be removed.fileName
- protected void fireFileChangeEvent(FileChangeListener listener, java.lang.String fileName)
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org