Openwings API Documentation (v1.1)

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).
 

Method Detail

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 retrieved
connectorInterface - 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

Openwings API Documentation (v1.1)