org.eclipse.ecf.provider.comm.tcp
Class Client.Creator

java.lang.Object
  extended by org.eclipse.ecf.provider.comm.tcp.Client.Creator
All Implemented Interfaces:
ISynchAsynchConnectionInstantiator
Enclosing class:
Client

public static class Client.Creator
extends java.lang.Object
implements ISynchAsynchConnectionInstantiator


Constructor Summary
Client.Creator()
           
 
Method Summary
 ISynchAsynchConnection createInstance(ConnectionTypeDescription description, ISynchAsynchEventHandler handler, java.lang.Class[] clazzes, java.lang.Object[] args)
          Create a new instance implementing ISynchAsynchConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client.Creator

public Client.Creator()
Method Detail

createInstance

public ISynchAsynchConnection createInstance(ConnectionTypeDescription description,
                                             ISynchAsynchEventHandler handler,
                                             java.lang.Class[] clazzes,
                                             java.lang.Object[] args)
                                      throws ConnectionCreateException
Description copied from interface: ISynchAsynchConnectionInstantiator
Create a new instance implementing ISynchAsynchConnection

Specified by:
createInstance in interface ISynchAsynchConnectionInstantiator
Parameters:
description - the ConnectionTypeDescription use to create the instance
handler - the event handler to be associated with the new connection instance
clazzes - the classes for the args array
args - the arguments passed to the connection factory
Returns:
ISynchAsynchConnection created. Must not be null.
Throws:
ConnectionCreateException - thrown if new instance of given ConnectionTypeDescription cannot be created for whatever reason