Framework Professional Edition Package


org.mbs.services.io
Interface ConnectionListener

All Superinterfaces:
java.util.EventListener

public interface ConnectionListener
extends java.util.EventListener

Interface for a listener that will receive notification when the connection is created and when is closed.

Listener is notified for creation of the connection only when the connector service creates connection that implements only this and the Connection interface, when the needed IOProvider is not available at the moment of creation. When the provider becomes available then all registered listeners will receive event

CONNECTION_CREATED and the created connection. Event CONNECTION_CLOSED must be send from every connection that implements this interface when it is closing.


Field Summary
static int CONNECTION_CLOSED
          Constant for event type closed
static int CONNECTION_CREATED
          Constant for event type created
 
Method Summary
 void notify(java.lang.String uri, int eventType, Connection conn)
          Receives notification that a connection has been created or closed.
 

Field Detail

CONNECTION_CREATED

static final int CONNECTION_CREATED
Constant for event type created

See Also:
Constant Field Values

CONNECTION_CLOSED

static final int CONNECTION_CLOSED
Constant for event type closed

See Also:
Constant Field Values
Method Detail

notify

void notify(java.lang.String uri,
            int eventType,
            Connection conn)
Receives notification that a connection has been created or closed.


Framework Professional Edition Package


Copyright © 1999-2007 ProSyst Software GmbH. All Rights Reserved