Search in sources :

Example 11 with IContainerListener

use of org.eclipse.ecf.core.IContainerListener in project ecf by eclipse.

the class BitTorrentContainer method fireContainerEvent.

private void fireContainerEvent(IContainerEvent event) {
    synchronized (containerListeners) {
        for (int i = 0; i < containerListeners.size(); i++) {
            final IContainerListener icl = (IContainerListener) containerListeners.get(i);
            icl.handleEvent(event);
        }
    }
}
Also used : IContainerListener(org.eclipse.ecf.core.IContainerListener)

Aggregations

IContainerListener (org.eclipse.ecf.core.IContainerListener)11 IContainerEvent (org.eclipse.ecf.core.events.IContainerEvent)5 IContainerConnectedEvent (org.eclipse.ecf.core.events.IContainerConnectedEvent)3 IContainerDisconnectedEvent (org.eclipse.ecf.core.events.IContainerDisconnectedEvent)3 IContainer (org.eclipse.ecf.core.IContainer)2 ID (org.eclipse.ecf.core.identity.ID)2 IIMMessageEvent (org.eclipse.ecf.presence.IIMMessageEvent)2 IIMMessageListener (org.eclipse.ecf.presence.IIMMessageListener)2 IChatMessageEvent (org.eclipse.ecf.presence.im.IChatMessageEvent)2 URISyntaxException (java.net.URISyntaxException)1 IDCreateException (org.eclipse.ecf.core.identity.IDCreateException)1 ISharedObjectManager (org.eclipse.ecf.core.sharedobject.ISharedObjectManager)1 SharedObjectCreateException (org.eclipse.ecf.core.sharedobject.SharedObjectCreateException)1 ISharedObjectActivatedEvent (org.eclipse.ecf.core.sharedobject.events.ISharedObjectActivatedEvent)1 IUser (org.eclipse.ecf.core.user.IUser)1 ECFException (org.eclipse.ecf.core.util.ECFException)1 IPresenceContainerAdapter (org.eclipse.ecf.presence.IPresenceContainerAdapter)1 IChatID (org.eclipse.ecf.presence.im.IChatID)1 IChatManager (org.eclipse.ecf.presence.im.IChatManager)1 IChatMessage (org.eclipse.ecf.presence.im.IChatMessage)1