View Javadoc

1   /* $Id: Messenger.java,v 1.2 2004/06/02 20:10:05 johndavidtaylor Exp $
2    * Created on Mar 14, 2004 by jdt
3    * The alipes project
4    * (c) 2004 
5    *
6    */
7   package org.abraracourcix.alipes.common.messaging;
8   
9   /***
10   * Generic messenger interface to send emails or whatever 
11   * @author jdt
12   */
13  public interface Messenger {
14      /***
15       * All messengers, whether email, jabber, whatever simply send a text message.
16       * @param subject subject of message
17       * @param message message body
18       * @throws MessengerException if there's a wee problem
19       */
20      void sendMessage(String subject, String message) throws MessengerException;
21      /***
22       * The intended recipient for this message - nice to know
23       * @return who?
24       */
25      String getRecipient();
26  }
27  
28  
29  /*
30   *  $Log: Messenger.java,v $
31   *  Revision 1.2  2004/06/02 20:10:05  johndavidtaylor
32   *  Refactoring to allow email templates.
33   *
34   *  Revision 1.1  2004/03/18 15:21:54  johndavidtaylor
35   *  Copied across from incubation in beanpeeler
36   *
37   *  Revision 1.1  2004/03/14 16:26:49  johndavidtaylor
38   *  refactored email
39   *
40   */