public interface ConnectionHandler extends ExtensionImplementation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
rcs_id |
Modifier and Type | Method and Description |
---|---|
void |
connect(com.softwareag.cst.util.security.Credentials c,
CommonAdapter ca)
Establish connection as required by the specific plugin implementing that
extension point
|
void |
disconnect(CommonAdapter ca)
Close connection
|
void |
init(CommonAdapter ca)
Initialize ConnectionHandler at very startup
|
boolean |
isConnected()
Check whether the respective connection has been established
|
void |
notifyConnected(CommonAdapter ca)
ConnectionHandler is notified after all connections have been established.
|
void |
prepareDisconnect(CommonAdapter ca)
Check whether connection held by plugin may be closed
|
getExtension, getPlugIn, popContextClassLoader, pushContextClassLoader, setExtension
static final java.lang.String rcs_id
void init(CommonAdapter ca)
ca
- the adapter being activevoid connect(com.softwareag.cst.util.security.Credentials c, CommonAdapter ca) throws java.lang.Exception
c
- the credentials obtained from the login dialogca
- the adapter being active while the connection is being establishedjava.lang.Exception
- if an error occured when attempting to establish the connectionvoid notifyConnected(CommonAdapter ca)
ca
- the adapter being active while the connection is being establishedboolean isConnected()
void prepareDisconnect(CommonAdapter ca) throws java.lang.Exception
ca
- the adapter being active while attempting to close connectionjava.lang.Exception
- if connection may not be closedvoid disconnect(CommonAdapter ca)
ca
- the adapter being active while attempting to close connection