net.openwings.connector.utilities
Interface ConnectorRepository
- public interface ConnectorRepository
This interface specifies a service that generates and stores
connectors.
|
Method Summary |
Connector |
getConnector(java.lang.Class serviceInterface,
java.lang.Class connectorInterface)
This method returns a connector for the given
interface (the choice of protocol is left to the
ConnectorRepository implementation). |
getConnector
public Connector getConnector(java.lang.Class serviceInterface,
java.lang.Class connectorInterface)
throws java.rmi.RemoteException
- This method returns a connector for the given
interface (the choice of protocol is left to the
ConnectorRepository implementation). If the connector
does not exist, it is created.
- Parameters:
serviceInterface - Interface for which a connector is to
be retrievedconnectorInterface - subtype of connector that is requested
for example,
net.openwings.connector.synchronous.SynchronousConnector
or net.openwings.connector.asynchronous.AsynchronousConnector
- Throws:
java.rmi.RemoteException - if there is an error communicating with the service