com.teamdev.filewatch
Class WatcherEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.teamdev.filewatch.WatcherEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WatcherEvent.Started, WatcherEvent.Stopped

public abstract class WatcherEvent
extends java.util.EventObject

Class that represents file watcher state change event

See Also:
Serialized Form

Nested Class Summary
static class WatcherEvent.Started
           
static class WatcherEvent.Stopped
           
static class WatcherEvent.StopReason
           
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WatcherEvent(FileWatcher source)
          Constructs a prototypical Event.
 
Method Summary
protected abstract  void dispatch(WatcherEventListener listener)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WatcherEvent

public WatcherEvent(FileWatcher source)
Constructs a prototypical Event.

Parameters:
source - The object on which the Event initially occurred.
Throws:
java.lang.IllegalArgumentException - if source is null.
Method Detail

dispatch

protected abstract void dispatch(WatcherEventListener listener)