org.eclipse.ecf.datashare.mergeable
Interface IMergeableChannelContainer

All Superinterfaces:
IAbstractChannelContainerAdapter

public interface IMergeableChannelContainer
extends IAbstractChannelContainerAdapter

MergeableChannel container entry point interface. This interface is an adapter to allow providers to expose mergeable channels to clients. It may be used in the following way:

  IMergeableChannelContainer channelcontainer = (IMergeableChannelContainer) container.getAdapter(IMergeableChannelContainer.class);
  if (channelcontainer != null) {
     // use channelcontainer
     ...
  } else {
     // container does not support channel container functionality
  }
 


Method Summary
 IMergeableChannel createMergeableChannel(ID channelID, IChannelListener listener, Map properties)
          Create a mergeable channel within this container
 
Methods inherited from interface org.eclipse.ecf.datashare.IAbstractChannelContainerAdapter
addListener, getChannel, getChannelNamespace, removeChannel, removeListener
 

Method Detail

createMergeableChannel

IMergeableChannel createMergeableChannel(ID channelID,
                                         IChannelListener listener,
                                         Map properties)
                                         throws ECFException
Create a mergeable channel within this container

Parameters:
channelID - the ID of the mergeable channel created
listener - the channel listener associated with this channel to receive asynchronous events
properties - a Map of properties to provide to the channel.
Returns:
IMergeableChannel the mergeable channel created
Throws:
ECFException - thrown if mergeable channel cannot be created