|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectable
A service associated with a specific IConnectionCategory
that wraps IConnection
s of a common subtype.
IConnectables provide a richer interface to connections, and a service-based approach to defining their capabilities.
This allows clients to enquire for what capabilities are available to exploit, rather than requiring connections of
specific subtypes be available. Subclasses of IConnectable will enrich this interface with methods specific to their
domain, providing these services to clients.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
void |
addListener(IConnectableListener connectableListener)
Deprecated. - replaced by IConnectable2.addListener(IConnectableListener2) |
void |
disconnect()
Disconnects the underlying IConnection that is being used to provide this service. |
IConnection |
getConnection()
Retrieves the IConnection being used by this IConnectable. |
java.lang.Class<? extends IConnection> |
getConnectionType()
|
boolean |
isConnected()
Determines whether or not the services provided by this IConnectable are currently available. |
void |
setConnection(IConnection connection)
Sets the underlying IConnection to be used by this IConnectable. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
void setConnection(IConnection connection)
IConnection
to be used by this IConnectable. The connection should
be supplied in a connected state.
the
- connection to use when making requests.IConnection getConnection()
IConnection
being used by this IConnectable.
IConnectable
or null
boolean isConnected()
java.lang.Class<? extends IConnection> getConnectionType()
IConnection
subclasses for this IConnectable
.void disconnect() throws ConnectionException
IConnection
that is being used to provide this service.
ConnectionException
- if there is a problem when disconnecting.@Deprecated void addListener(IConnectableListener connectableListener)
IConnectable2.addListener(IConnectableListener2)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |