toolbox.socket
Class SocketClientManagerImpl

Package class diagram package SocketClientManagerImpl
java.lang.Object
  extended by toolbox.socket.SocketClientManagerImpl
All Implemented Interfaces:
SocketClientManager

public class SocketClientManagerImpl
extends java.lang.Object
implements SocketClientManager

The default SocketClientManager implementation.

Implementations of this interface will provide the following:


Constructor Summary
SocketClientManagerImpl()
           
 
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 socket infrastructure configuration.
 void setName(java.lang.String name)
          Set the name of this manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketClientManagerImpl

public SocketClientManagerImpl()
Method Detail

init

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

Specified by:
init in interface SocketClientManager
Parameters:
name - String containing the name of this manager.
xmlProps - XML configuration properties.
Throws:
SocketClientException - if the manager cannot be initialised.

setName

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

Specified by:
setName in interface SocketClientManager
Parameters:
name - String containing manager name.

getName

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

Specified by:
getName in interface SocketClientManager
Returns:
String containing the name of this manager.

getSocketClient

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

Specified by:
getSocketClient in interface SocketClientManager
Returns:
SocketClient instance.

destroy

public void destroy()
Destroy this manager.

Specified by:
destroy in interface SocketClientManager