Class ConnectionPointCookie
public class ConnectionPointCookie
{
// Constructors
public ConnectionPointCookie(Object source, Object sink,
Class connectionInterface);
// Methods
public native synchronized void disconnect();
protected void finalize();
}
This class provides methods for creating and closing a connection between a source and a sink object.
public ConnectionPointCookie(Object source, Object sink,
Class connectionInterface);
Creates a connection between the source and the sink object by using the connection interface identifier (IID).
Parameter | Description |
source
| The source object that is used to make the interface connection.
|
sink
| The sink object that is used to make the interface connection.
|
connectionInterface
| The connection interface that is used to connect the source and the sink objects.
|
public native synchronized void disconnect();
Explicitly closes the connection between the source and the sink objects. The connection is closed independently of the garbage collection process.
Return Value:
No return value.
protected void finalize();
Closes the connection between the source and the sink objects by calling the ConnectionPointCookie object's disconnect method. When the object is no longer in processing scope, the Microsoft Win32 VM for Java ensures that appropriate cleanup occurs by calling this method.
Return Value:
No return value.