OptionalFileWatchServiceDelegate

play.dev.filewatch.OptionalFileWatchServiceDelegate

Watch service that delegates to a try. This allows it to exist without reporting an exception unless it's used.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

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

Concrete fields