Пример #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);
   }
 }