lazyj.notifications
Class EmailSender

java.lang.Object
  extended by lazyj.notifications.Sender
      extended by lazyj.notifications.EmailSender

public class EmailSender
extends Sender

Send a message as email. This implementation doesn't require any keys but you can specify:

Since:
Nov 16, 2007 (1.0.3)
Author:
costing

Constructor Summary
EmailSender()
           
 
Method Summary
 boolean init(ExtProperties prop, java.lang.String keyPrefix)
          This method is called by Notifier after an instance of a class implementing this interface is created with the default constructor.
 boolean send(Message m)
          Send the message to the target (mail / instant message / log file etc)
 
Methods inherited from class lazyj.notifications.Sender
getClassInstance, getClassLoader, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailSender

public EmailSender()
Method Detail

init

public boolean init(ExtProperties prop,
                    java.lang.String keyPrefix)
Description copied from class: Sender
This method is called by Notifier after an instance of a class implementing this interface is created with the default constructor. Each implementing class should take what is useful for it from the given configuration, taking into account (only) the keys with the given prefix.

Specified by:
init in class Sender
Parameters:
prop - configuration contents
keyPrefix - prefix for the subset of options that are relevant to this instance
Returns:
true if the initialization was ok, false if not (missing option etc)

send

public boolean send(Message m)
Description copied from class: Sender
Send the message to the target (mail / instant message / log file etc)

Specified by:
send in class Sender
Parameters:
m - message to send
Returns:
true if sending went ok, false if not