Exemple #1
0
 public void fireReceivingIncomingMessage(Message message) {
   for (MessageEventListener messageEventListener :
       new ArrayList<MessageEventListener>(messageEventListeners)) {
     messageEventListener.receivingMessage(message);
   }
 }
Exemple #2
0
 public void fireOutgoingMessageSending(Message message) {
   for (MessageEventListener messageEventListener :
       new ArrayList<MessageEventListener>(messageEventListeners)) {
     messageEventListener.sendingMessage(message);
   }
 }