dk.netarkivet.common.utils
Class PrintNotifications

java.lang.Object
  extended by dk.netarkivet.common.utils.Notifications
      extended by dk.netarkivet.common.utils.PrintNotifications

public class PrintNotifications
extends Notifications

A notification implementation that prints notifications on System.err.


Constructor Summary
PrintNotifications()
           
 
Method Summary
 void notify(java.lang.String message, NotificationType eventType, java.lang.Throwable e)
          Reacts to a notification by printing the notification to System.err.
 
Methods inherited from class dk.netarkivet.common.utils.Notifications
notify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintNotifications

public PrintNotifications()
Method Detail

notify

public void notify(java.lang.String message,
                   NotificationType eventType,
                   java.lang.Throwable e)
Reacts to a notification by printing the notification to System.err.

Specified by:
notify in class Notifications
Parameters:
message - The error message to print.
e - The exception to print, if not null.
eventType - The type of event