1
2
3
4
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
31
32
33
34
35
36
37
38
39
40