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