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