Package dk.netarkivet.common.utils
Class RememberNotifications
- java.lang.Object
-
- dk.netarkivet.common.utils.Notifications
-
- dk.netarkivet.common.utils.RememberNotifications
-
public class RememberNotifications extends Notifications
Mockup that simply remembers its last calls in two public fields.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RememberNotifications
getInstance()
void
notify(String message, NotificationType eventType, Throwable exception)
Remember the variables, and print a message to stdout.static void
resetSingleton()
-
Methods inherited from class dk.netarkivet.common.utils.Notifications
notify
-
-
-
-
Field Detail
-
type
public NotificationType type
-
message
public String message
-
e
public Throwable e
-
-
Method Detail
-
getInstance
public static RememberNotifications getInstance()
-
notify
public void notify(String message, NotificationType eventType, Throwable exception)
Remember the variables, and print a message to stdout.- Specified by:
notify
in classNotifications
- Parameters:
message
- The message to remember.eventType
- The type of notification eventexception
- The exception to remember.
-
resetSingleton
public static void resetSingleton()
-
-