org.eclipse.ecf.core.comm.provider
Interface ISynchAsynchConnectionInstantiator

All Known Implementing Classes:
Client.Creator

public interface ISynchAsynchConnectionInstantiator

Provider interface for the org.eclipse.ecf.core.connectionFactory extension point. Extensions implementing the org.eclipse.ecf.core.connectionFactory extension point must implement this interface.


Method Summary
 ISynchAsynchConnection createInstance(ConnectionTypeDescription description, ISynchAsynchEventHandler handler, java.lang.Class[] clazzes, java.lang.Object[] args)
          Create a new instance implementing ISynchAsynchConnection
 

Method Detail

createInstance

ISynchAsynchConnection createInstance(ConnectionTypeDescription description,
                                      ISynchAsynchEventHandler handler,
                                      java.lang.Class[] clazzes,
                                      java.lang.Object[] args)
                                      throws ConnectionCreateException
Create a new instance implementing ISynchAsynchConnection

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