org.backsource.alert.sender
Class SenderBase

java.lang.Object
  extended byorg.backsource.alert.sender.SenderBase
All Implemented Interfaces:
Sender
Direct Known Subclasses:
MailSender

public abstract class SenderBase
extends java.lang.Object
implements Sender

A simple base class for senders that implements Sender.

Version:
$Revision: 1.1.1.1 $
Author:
Peter Antman

Field Summary
protected  java.util.Properties prop
           
 
Constructor Summary
SenderBase()
           
 
Method Summary
abstract  void sendErrors(java.util.List errors, java.util.List warnings)
          Send the errors and warnings given.
abstract  void sendWarnings(java.util.List warnings)
          Send the warnings given.
 void setProperties(java.util.Properties prop)
          Set the properties of the sender.
protected abstract  void setUp()
          Callback method when Sender is initializes, sub classes should do its setup in this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prop

protected java.util.Properties prop
Constructor Detail

SenderBase

public SenderBase()
Method Detail

sendErrors

public abstract void sendErrors(java.util.List errors,
                                java.util.List warnings)
Description copied from interface: Sender
Send the errors and warnings given.

Specified by:
sendErrors in interface Sender

sendWarnings

public abstract void sendWarnings(java.util.List warnings)
Description copied from interface: Sender
Send the warnings given.

It is up to the sender to decide, based on configuration or statically if it should really send warnings.

Specified by:
sendWarnings in interface Sender

setProperties

public void setProperties(java.util.Properties prop)
                   throws java.lang.Exception
Set the properties of the sender.

Specified by:
setProperties in interface Sender
Throws:
java.lang.Exception

setUp

protected abstract void setUp()
                       throws java.lang.Exception
Callback method when Sender is initializes, sub classes should do its setup in this method.

Throws:
java.lang.Exception


Copyright © 2002-2004 Backsource. All Rights Reserved.