DefaultFileWatchService

play.dev.filewatch.DefaultFileWatchService
class DefaultFileWatchService(logger: LoggerProxy, isMac: Boolean, disableFileHashCheck: Boolean) extends FileWatchService

Implementation of the file watch service that uses a native implementation for Mac and otherwise uses the JDK's WatchService implementation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(logger: LoggerProxy)
def this(logger: LoggerProxy, isMac: Boolean)

Concrete methods

def watch(filesToWatch: Seq[File], onChange: () => Unit): FileWatcher

Watch the given sequence of files or directories.

Watch the given sequence of files or directories.

Value parameters

filesToWatch

The files to watch.

onChange

A callback that is executed whenever something changes.

Attributes

Returns

A watcher

Inherited methods

def watch(filesToWatch: List[File], onChange: Callable[Void]): FileWatcher

Watch the given sequence of files or directories.

Watch the given sequence of files or directories.

Value parameters

filesToWatch

The files to watch.

onChange

A callback that is executed whenever something changes.

Attributes

Returns

A watcher

Inherited from:
FileWatchService