diff options
| author | slewis | 2004-12-28 18:29:13 +0000 |
|---|---|---|
| committer | slewis | 2004-12-28 18:29:13 +0000 |
| commit | 03f502065a3a8d285af1e0d0bbad312a5f3f5a0c (patch) | |
| tree | 740a6710af61dd5e363e792afd12d7404d3a9d38 | |
| parent | 3b15034e723060a6937ff73627805d88dd40e667 (diff) | |
| download | org.eclipse.ecf-03f502065a3a8d285af1e0d0bbad312a5f3f5a0c.tar.gz org.eclipse.ecf-03f502065a3a8d285af1e0d0bbad312a5f3f5a0c.tar.xz org.eclipse.ecf-03f502065a3a8d285af1e0d0bbad312a5f3f5a0c.zip | |
Small updates to internal api
2 files changed, 9 insertions, 9 deletions
diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ConnectionFactory.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ConnectionFactory.java index 92903d97f..449db30b3 100644 --- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ConnectionFactory.java +++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ConnectionFactory.java @@ -7,7 +7,11 @@ import org.eclipse.ecf.core.util.AbstractFactory; public class ConnectionFactory { private static Hashtable connectiontypes = new Hashtable(); - + + static { + ConnectionDescription cd = new ConnectionDescription((ClassLoader)null,"default","org.eclipse.ecf.provider.comm.tcp.Client$Creator"); + addDescription(cd); + } public final static ConnectionDescription getDescription(ConnectionDescription scd) { return getDescription0(scd); } @@ -57,11 +61,11 @@ public class ConnectionFactory { throws ConnectionInstantiationException { if (desc == null) - throw new ConnectionInstantiationException("AsynchConnectionDescription cannot be null"); + throw new ConnectionInstantiationException("ConnectionDescription cannot be null"); ConnectionDescription cd = getDescription0(desc); if (cd == null) throw new ConnectionInstantiationException( - "AsynchConnectionDescription " + desc.getName() + " not found"); + "ConnectionDescription " + desc.getName() + " not found"); IAsynchConnectionInstantiator instantiator = null; Class clazzes[] = null; try { @@ -69,7 +73,7 @@ public class ConnectionFactory { clazzes = AbstractFactory.getClassesForTypes(argTypes, args, cd.getClassLoader()); if (instantiator == null) throw new InstantiationException( - "Instantiator for AsynchConnectionDescription " + "Instantiator for ConnectionDescription " + cd.getName() + " is null"); } catch (Exception e) { diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ConnectionRequestHandler.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ConnectionRequestHandler.java index 61160db9c..2af22e3ff 100644 --- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ConnectionRequestHandler.java +++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ConnectionRequestHandler.java @@ -1,7 +1,3 @@ -/* - * Created on Dec 23, 2004 - * - */ package org.eclipse.ecf.internal.comm; import java.io.Serializable; @@ -9,6 +5,6 @@ import java.net.Socket; public interface ConnectionRequestHandler { - public Serializable checkConnect(Socket aSocket, String target, Object data, ISynchAsynchConnection conn) throws Exception; + public Serializable checkConnect(Socket aSocket, String target, Serializable data, ISynchAsynchConnection conn); } |
