src/net/java/sip/communicator/service/protocol/AbstractOperationSetMultiUserChat.java
/**
     * Fires a new <code>ChatRoomInvitationReceivedEvent</code> to all currently
     * registered <code>ChatRoomInvitationListener</code>s to notify about the
     * receipt of a specific <code>ChatRoomInvitation</code>.
     *
     * @param invitation
     *            the <code>ChatRoomInvitation</code> which has been received
     */
Fires a new ChatRoomInvitationReceivedEvent to all currently
registered ChatRoomInvitationListeners to notify about the
receipt of a specific ChatRoomInvitation.

@param invitation
the ChatRoomInvitation which has been received
Fires a new ChatRoomInvitationReceivedEvent to all currently registered ChatRoomInvitationListeners to notify about the receipt of a specific ChatRoomInvitation . @param invitation the ChatRoomInvitation which has been received
protected void fireInvitationReceived(ChatRoomInvitation invitation)
    {
        ChatRoomInvitationReceivedEvent evt
            = new ChatRoomInvitationReceivedEvent(
                    this,
                    invitation,
                    new Date(System.currentTimeMillis()));
        ChatRoomInvitationListener[] listeners;
        synchronized (invitationListeners)
        {
            listeners
                = invitationListeners
                    .toArray(
                        new ChatRoomInvitationListener[
                                invitationListeners.size()]);
        }
        for (ChatRoomInvitationListener listener : listeners)
            listener.invitationReceived(evt);
    }
protected void fireInvitationReceived ( ChatRoomInvitation invitation ) { ChatRoomInvitationReceivedEvent evt = new ChatRoomInvitationReceivedEvent ( this , invitation , new Date ( System . currentTimeMillis ( ) ) ) ; ChatRoomInvitationListener [ ] listeners ; synchronized ( invitationListeners ) { listeners = invitationListeners . toArray ( new ChatRoomInvitationListener [ invitationListeners . size ( ) ] ) ; } for ( ChatRoomInvitationListener listener : listeners ) listener . invitationReceived ( evt ) ; }
Fires a new <code>ChatRoomInvitationReceivedEvent</code> to all currently
 registered <code>ChatRoomInvitationListener</code>s to notify about the
 receipt of a specific <code>ChatRoomInvitation</code>.
Fires a new <code > ChatRoomInvitationReceivedEvent< / code > to all currently registered <code > ChatRoomInvitationListener< / code > s to notify about the receipt of a specific <code > ChatRoomInvitation< / code > .