sam.event
Class FileEventNotifier

java.lang.Object
  |
  +--sam.event.FileEventNotifier

public class FileEventNotifier
extends java.lang.Object

Class for dispatching FileEvent through registered FileEventListeners.


Nested Class Summary
static class FileEventNotifier.NotificationType
          Class describing a notification type.
 
Field Summary
static FileEventNotifier.NotificationType FAILED
          Notification type for processed entry events
static FileEventNotifier.NotificationType MISMATCHING
          Notification type for mismatching entry events
static FileEventNotifier.NotificationType MISSING
          Notification type for missing entry events
static FileEventNotifier.NotificationType OVERWRITTEN
          Notification type for overwritten entry events
static FileEventNotifier.NotificationType PROCESSED
          Notification type for failed entry events
static FileEventNotifier.NotificationType SKIPPED
          Notification type for skipped entry events
 
Constructor Summary
FileEventNotifier()
           
 
Method Summary
 void notifyAll(FileEventNotifier.NotificationType type, sam.entry.Entry entry, java.lang.String message)
          Notifies all registered listeners of specified event
 void notifyAll(FileEventNotifier.NotificationType type, sam.event.FileEvent event)
          Notifies all registered listeners of specified event
 void register(sam.event.FileEventListener listener)
          Registers a new FileEvent listener
 void unregister(sam.event.FileEventListener listener)
          Unregisters a previously registered FileEvent listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROCESSED

public static final FileEventNotifier.NotificationType PROCESSED
Notification type for failed entry events


FAILED

public static final FileEventNotifier.NotificationType FAILED
Notification type for processed entry events


MISSING

public static final FileEventNotifier.NotificationType MISSING
Notification type for missing entry events


MISMATCHING

public static final FileEventNotifier.NotificationType MISMATCHING
Notification type for mismatching entry events


OVERWRITTEN

public static final FileEventNotifier.NotificationType OVERWRITTEN
Notification type for overwritten entry events


SKIPPED

public static final FileEventNotifier.NotificationType SKIPPED
Notification type for skipped entry events

Constructor Detail

FileEventNotifier

public FileEventNotifier()
Method Detail

register

public void register(sam.event.FileEventListener listener)
Registers a new FileEvent listener


unregister

public void unregister(sam.event.FileEventListener listener)
Unregisters a previously registered FileEvent listener


notifyAll

public void notifyAll(FileEventNotifier.NotificationType type,
                      sam.entry.Entry entry,
                      java.lang.String message)
Notifies all registered listeners of specified event


notifyAll

public void notifyAll(FileEventNotifier.NotificationType type,
                      sam.event.FileEvent event)
Notifies all registered listeners of specified event