toolbox.socket
Interface SocketClientManager

Package class diagram package SocketClientManager
All Known Implementing Classes:
SocketClientManagerImpl

public interface SocketClientManager

Defines an interface for developing a client socket manager.

Implementations of this interface will provide the following:


Method Summary
 void destroy()
          Destroy this manager.
 java.lang.String getName()
          Return the name of this manager.
 SocketClient getSocketClient()
          Returns an implementation of the SocketClient interface.
 void init(java.lang.String name, XMLProperties xmlProps)
          Initialise this manager with the XML configuration containing the client infrastructure configuration.
 void setName(java.lang.String name)
          Set the name of this manager.
 

Method Detail

init

void init(java.lang.String name,
          XMLProperties xmlProps)
          throws SocketClientException
Initialise this manager with the XML configuration containing the client infrastructure configuration.

Parameters:
name - String containing the name of this manager.
xmlProps - XML configuration properties.
Throws:
SocketClientException - if the manager cannot be initialised.

setName

void setName(java.lang.String name)
Set the name of this manager.

Parameters:
name - String containing manager name.

getName

java.lang.String getName()
Return the name of this manager.

Returns:
String containing the name of this manager.

getSocketClient

SocketClient getSocketClient()
Returns an implementation of the SocketClient interface.

Returns:
SocketClient instance.

destroy

void destroy()
Destroy this manager.