src/net/java/sip/communicator/service/protocol/AbstractCallPeer.java
/**
     * Fires a specific <tt>CallPeerConferenceEvent</tt> to the
     * <tt>CallPeerConferenceListener</tt>s interested in changes in the
     * conference-related information provided by this peer.
     *
     * @param conferenceEvent a <tt>CallPeerConferenceEvent</tt> to be fired and
     * carrying the event data
     */
Fires a specific CallPeerConferenceEvent to the
CallPeerConferenceListeners interested in changes in the
conference-related information provided by this peer.

@param conferenceEvent a CallPeerConferenceEvent to be fired and
carrying the event data
Fires a specific CallPeerConferenceEvent to the CallPeerConferenceListeners interested in changes in the conference - related information provided by this peer . @param conferenceEvent a CallPeerConferenceEvent to be fired and carrying the event data
protected void fireCallPeerConferenceEvent(
        CallPeerConferenceEvent conferenceEvent)
    {
        CallPeerConferenceListener[] listeners;
        synchronized (callPeerConferenceListeners)
        {
            listeners
                = callPeerConferenceListeners
                    .toArray(
                        new CallPeerConferenceListener[
                                callPeerConferenceListeners.size()]);
        }
        int eventID = conferenceEvent.getEventID();
        if (logger.isDebugEnabled())
        {
            String eventIDString;
            switch (eventID)
            {
            case CallPeerConferenceEvent.CONFERENCE_FOCUS_CHANGED:
                eventIDString = "CONFERENCE_FOCUS_CHANGED";
                break;
            case CallPeerConferenceEvent.CONFERENCE_MEMBER_ADDED:
                eventIDString = "CONFERENCE_MEMBER_ADDED";
                break;
            case CallPeerConferenceEvent.CONFERENCE_MEMBER_REMOVED:
                eventIDString = "CONFERENCE_MEMBER_REMOVED";
                break;
            case CallPeerConferenceEvent.CONFERENCE_MEMBER_ERROR_RECEIVED:
                eventIDString = "CONFERENCE_MEMBER_ERROR_RECEIVED";
                break;
            default:
                eventIDString = "UNKNOWN";
                break;
            }
            logger
                .debug(
                    "Firing CallPeerConferenceEvent with ID "
                        + eventIDString
                        + " to "
                        + listeners.length
                        + " listeners");
        }
        for (CallPeerConferenceListener listener : listeners)
            switch (eventID)
            {
            case CallPeerConferenceEvent.CONFERENCE_FOCUS_CHANGED:
                listener.conferenceFocusChanged(conferenceEvent);
                break;
            case CallPeerConferenceEvent.CONFERENCE_MEMBER_ADDED:
                listener.conferenceMemberAdded(conferenceEvent);
                break;
            case CallPeerConferenceEvent.CONFERENCE_MEMBER_REMOVED:
                listener.conferenceMemberRemoved(conferenceEvent);
                break;
            case CallPeerConferenceEvent.CONFERENCE_MEMBER_ERROR_RECEIVED:
                listener.conferenceMemberErrorReceived(conferenceEvent);
                break;
            }
    }
protected void fireCallPeerConferenceEvent ( CallPeerConferenceEvent conferenceEvent ) { CallPeerConferenceListener [ ] listeners ; synchronized ( callPeerConferenceListeners ) { listeners = callPeerConferenceListeners . toArray ( new CallPeerConferenceListener [ callPeerConferenceListeners . size ( ) ] ) ; } int eventID = conferenceEvent . getEventID ( ) ; if ( logger . isDebugEnabled ( ) ) { String eventIDString ; switch ( eventID ) { case CallPeerConferenceEvent . CONFERENCE_FOCUS_CHANGED : eventIDString = "CONFERENCE_FOCUS_CHANGED" ; break ; case CallPeerConferenceEvent . CONFERENCE_MEMBER_ADDED : eventIDString = "CONFERENCE_MEMBER_ADDED" ; break ; case CallPeerConferenceEvent . CONFERENCE_MEMBER_REMOVED : eventIDString = "CONFERENCE_MEMBER_REMOVED" ; break ; case CallPeerConferenceEvent . CONFERENCE_MEMBER_ERROR_RECEIVED : eventIDString = "CONFERENCE_MEMBER_ERROR_RECEIVED" ; break ; default : eventIDString = "UNKNOWN" ; break ; } logger . debug ( "Firing CallPeerConferenceEvent with ID " + eventIDString + " to " + listeners . length + " listeners" ) ; } for ( CallPeerConferenceListener listener : listeners ) switch ( eventID ) { case CallPeerConferenceEvent . CONFERENCE_FOCUS_CHANGED : listener . conferenceFocusChanged ( conferenceEvent ) ; break ; case CallPeerConferenceEvent . CONFERENCE_MEMBER_ADDED : listener . conferenceMemberAdded ( conferenceEvent ) ; break ; case CallPeerConferenceEvent . CONFERENCE_MEMBER_REMOVED : listener . conferenceMemberRemoved ( conferenceEvent ) ; break ; case CallPeerConferenceEvent . CONFERENCE_MEMBER_ERROR_RECEIVED : listener . conferenceMemberErrorReceived ( conferenceEvent ) ; break ; } }
Fires a specific <tt>CallPeerConferenceEvent</tt> to the
 <tt>CallPeerConferenceListener</tt>s interested in changes in the
 conference-related information provided by this peer.
Fires a specific <tt > CallPeerConferenceEvent< / tt > to the <tt > CallPeerConferenceListener< / tt > s interested in changes in the conference - related information provided by this peer .