Package com.jalios.jcms.lessCompiler
Class AbstractFileWatcher
- java.lang.Object
-
- java.lang.Thread
-
- com.jalios.jcms.lessCompiler.AbstractFileWatcher
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
LessFileWatcher
public abstract class AbstractFileWatcher extends java.lang.Thread
-
-
Constructor Summary
Constructors Constructor Description AbstractFileWatcher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoOnCreate(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)protected abstract voiddoOnDelete(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)protected abstract voiddoOnModify(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)booleanisStopped()voidrun()protected voidsetWatchingDirectories(java.util.Collection<java.nio.file.Path> watchingDirectories)voidstopThread()-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
isStopped
public boolean isStopped()
-
stopThread
public void stopThread()
-
setWatchingDirectories
protected void setWatchingDirectories(java.util.Collection<java.nio.file.Path> watchingDirectories)
-
doOnDelete
protected abstract void doOnDelete(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)
-
doOnModify
protected abstract void doOnModify(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)
-
doOnCreate
protected abstract void doOnCreate(java.nio.file.WatchEvent<java.nio.file.Path> event, java.nio.file.Path dir)
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-