lazyj.notifications

Class EmailSender

    • Constructor Summary

      Constructors 
      Constructor and Description
      EmailSender() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      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 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