|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.provider.datashare.DatashareContainerAdapter
public class DatashareContainerAdapter
Field Summary | |
---|---|
protected SOContainer |
container
|
protected static int |
DEFAULT_TRANSACTION_WAIT
|
protected SharedObjectDatashareContainerAdapter |
delegate
|
protected ID |
delegateID
|
protected static int |
SO_CREATION_ERROR
|
Constructor Summary | |
---|---|
DatashareContainerAdapter(SOContainer container)
|
Method Summary | |
---|---|
void |
addListener(IChannelContainerListener listener)
Add listener for IChannelContainerAdapter events. |
IChannel |
createChannel(IChannelConfig newChannelConfig)
Create a new channel within this container |
IChannel |
createChannel(ID newID,
IChannelListener listener,
java.util.Map properties)
Create a new channel within this container |
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
IChannel |
getChannel(ID channelID)
Get IChannel with given channelID. |
Namespace |
getChannelNamespace()
Get expected Namespace for channel ID creation |
protected void |
initialize()
|
boolean |
removeChannel(ID channelID)
Remove channel with given ID. |
void |
removeListener(IChannelContainerListener listener)
Remove listener for IChannelContainerAdapter events |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SOContainer container
protected static final int DEFAULT_TRANSACTION_WAIT
protected static final int SO_CREATION_ERROR
protected SharedObjectDatashareContainerAdapter delegate
protected ID delegateID
Constructor Detail |
---|
public DatashareContainerAdapter(SOContainer container)
Method Detail |
---|
protected void initialize()
public IChannel createChannel(ID newID, IChannelListener listener, java.util.Map properties) throws ECFException
IChannelContainerAdapter
createChannel
in interface IChannelContainerAdapter
newID
- the ID of the new channel. Must not be null
.listener
- a listener for receiving messages from remotes for this
channel. May be null
if no listener is to be
notified.properties
- a Map of properties to provide to the channel. May be
null
.
ECFException
- if some problem creating IChannel instancepublic IChannel createChannel(IChannelConfig newChannelConfig) throws ECFException
IChannelContainerAdapter
createChannel
in interface IChannelContainerAdapter
newChannelConfig
- the configuration for the newly created channel. Must not be
null
.
null
.
ECFException
- if some problem creating IChannel instancepublic IChannel getChannel(ID channelID)
IAbstractChannelContainerAdapter
getChannel
in interface IAbstractChannelContainerAdapter
channelID
- the ID of the channel to get. Must not be null
.
null
if channel not found.public boolean removeChannel(ID channelID)
IAbstractChannelContainerAdapter
IAbstractChannel.dispose()
to dispose the channel
before returning from this method.
removeChannel
in interface IAbstractChannelContainerAdapter
channelID
- the ID of the channel to remove within this container. Must
not be null
.
public Namespace getChannelNamespace()
IAbstractChannelContainerAdapter
getChannelNamespace
in interface IAbstractChannelContainerAdapter
null
.public void addListener(IChannelContainerListener listener)
IAbstractChannelContainerAdapter
addListener
in interface IAbstractChannelContainerAdapter
listener
- to be added. Must not be null
.public void removeListener(IChannelContainerListener listener)
IAbstractChannelContainerAdapter
removeListener
in interface IAbstractChannelContainerAdapter
listener
- to be removed. Must not be null
.public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |