OpenCOM
Interface IConnections


public interface IConnections

The IConnection interface is implemented by every component with a receptacle. This interface should never be called by the application, and should only be utilised by the runtime kernel.


Method Summary
 boolean connect(IUnknown pSinkIntf, java.lang.String riid, long provConnID)
          Connects the specified sink interface to a receptacle of the specified type in the target component instance.
 boolean disconnect(java.lang.String riid, long connID)
          Takes a previously established connection's connection identifier and disconnects the corresponding receptacle and interface by resetting the receptacle's internal interface pointer.
 

Method Detail

connect

boolean connect(IUnknown pSinkIntf,
                java.lang.String riid,
                long provConnID)
Connects the specified sink interface to a receptacle of the specified type in the target component instance.

Parameters:
pSinkIntf - a component instance to connect to.
riid - a string representing the Interface type of the connection.
provConnID - a long representing the unique identifier of the connection.
Returns:
a boolean indicating the success of the method.
See Also:
IUnknown

disconnect

boolean disconnect(java.lang.String riid,
                   long connID)
Takes a previously established connection's connection identifier and disconnects the corresponding receptacle and interface by resetting the receptacle's internal interface pointer.

Parameters:
riid - a string representing the Interface type of the connection.
connID - a long representing the unique identifier of the connection.
Returns:
a boolean indicating the success of the method.