anima.connector
Interface IConnectorFactory

All Known Implementing Classes:
JavaLocalConnectorFactory

public interface IConnectorFactory

This interface creates a Connector Factory one SyncConnector and one AssyncConnector


Method Summary
 IAssyncConnector create1to1AssyncConnector(IAssyncSender sender, IAssyncReceiver receiver)
          This method creates an asynchronous connector
This asynchronous connector refers to way how the message will
sent.
 ISyncConnector create1to1SyncConnector(ISyncSender sender, ISyncReceiver receiver)
          This method creates a synchronous connector.
 

Method Detail

create1to1SyncConnector

ISyncConnector create1to1SyncConnector(ISyncSender sender,
                                       ISyncReceiver receiver)
                                       throws ConnectorException
This method creates a synchronous connector.
This synchronous connector refers to way how the message will
sent. The connector wait a message of return.
public ISyncConnector create1to1SyncConnector(ISyncSender sender, ISyncReceiver receiver) throws ConnectorException;
 

Parameters:
ISyncSender - object which sends the message.
ISyncReceiver - object which receives the message.
Returns:
the synchronous connector
Throws:
ConnectorException - connector can not be created; possible reasons: null sender or null receiver

create1to1AssyncConnector

IAssyncConnector create1to1AssyncConnector(IAssyncSender sender,
                                           IAssyncReceiver receiver)
                                           throws ConnectorException
This method creates an asynchronous connector
This asynchronous connector refers to way how the message will
sent. The connector no waiting a message of return.
public IAssyncConnector create1to1AssyncConnector(IAssyncSender sender, IAssyncReceiver receiver) throws ConnectorException;
 

Parameters:
IAssyncSender - object which sends the message.
IAssyncReceiver - object which receives the message.
Returns:
asynchronous connector
Throws:
ConnectorException - connector can not be created; possible reasons: null sender or null receiver
See Also:
IAssyncConnector


Copyright © 2007. All Rights Reserved.