diff options
| author | slewis | 2004-12-22 06:38:19 +0000 |
|---|---|---|
| committer | slewis | 2004-12-22 06:38:19 +0000 |
| commit | 2a6059ec67e295577c82230a9da0e8bc2fe1af06 (patch) | |
| tree | 6cb89f4065f3bf59dc0f42ae40f7454ebd76f097 | |
| parent | dfd0aa961a89169a92bb7d8a729939db82821ce7 (diff) | |
| download | org.eclipse.ecf-2a6059ec67e295577c82230a9da0e8bc2fe1af06.tar.gz org.eclipse.ecf-2a6059ec67e295577c82230a9da0e8bc2fe1af06.tar.xz org.eclipse.ecf-2a6059ec67e295577c82230a9da0e8bc2fe1af06.zip | |
Added ISynchAsynchConnection and ISynchAsynchConnectionEventHandler interface classes
5 files changed, 17 insertions, 6 deletions
diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/IAsynchConnectionEventHandler.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/IAsynchConnectionEventHandler.java index be4a8aa29..6dac3b39d 100644 --- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/IAsynchConnectionEventHandler.java +++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/IAsynchConnectionEventHandler.java @@ -3,5 +3,5 @@ package org.eclipse.ecf.internal.comm; import java.io.IOException; public interface IAsynchConnectionEventHandler extends IConnectionEventHandler { - public void handleAsynchEvent(ConnectionEvent event) throws IOException; + public void handleAsynchEvent(AsynchConnectionEvent event) throws IOException; } diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchAsynchConnection.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchAsynchConnection.java new file mode 100644 index 000000000..1f1d85776 --- /dev/null +++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchAsynchConnection.java @@ -0,0 +1,6 @@ +package org.eclipse.ecf.internal.comm; + +public interface ISynchAsynchConnection extends IAsynchConnection, + ISynchConnection { + +} diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchAsynchConnectionEventHandler.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchAsynchConnectionEventHandler.java new file mode 100644 index 000000000..80cec6b24 --- /dev/null +++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchAsynchConnectionEventHandler.java @@ -0,0 +1,5 @@ +package org.eclipse.ecf.internal.comm; + +public interface ISynchAsynchConnectionEventHandler extends ISynchConnectionEventHandler, IAsynchConnectionEventHandler { + +} diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchConnectionEventHandler.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchConnectionEventHandler.java index d0dbd1f43..9b537b655 100644 --- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchConnectionEventHandler.java +++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/comm/ISynchConnectionEventHandler.java @@ -4,5 +4,5 @@ import java.io.IOException; public interface ISynchConnectionEventHandler extends IConnectionEventHandler { - public Object handleSynchEvent(ConnectionEvent event) throws IOException; + public Object handleSynchEvent(SynchConnectionEvent event) throws IOException; } diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/impl/standalone/SharedObjectContainer.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/impl/standalone/SharedObjectContainer.java index e5309ff60..61b4b8193 100644 --- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/impl/standalone/SharedObjectContainer.java +++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/internal/impl/standalone/SharedObjectContainer.java @@ -1071,19 +1071,19 @@ public abstract class SharedObjectContainer implements ISharedObjectContainer { public ClassLoader getClassLoaderForID(ID id) { return this.getClass().getClassLoader(); } - public void handleAsynchEvent(ConnectionEvent evt) throws IOException { + public void handleAsynchEvent(AsynchConnectionEvent evt) throws IOException { // Pass to handler try { - SharedObjectContainer.this.handleAsynchEvent((AsynchConnectionEvent) evt); + SharedObjectContainer.this.handleAsynchEvent(evt); } catch (IllegalAccessException e) { throw new IOException("Illegal data access handling event "+evt); } } - public Object handleSynchEvent(ConnectionEvent evt) + public Object handleSynchEvent(SynchConnectionEvent evt) throws IOException { // Handle synch packet try { - return SharedObjectContainer.this.handleSynchEvent((SynchConnectionEvent) evt); + return SharedObjectContainer.this.handleSynchEvent(evt); } catch (IllegalAccessException e) { throw new IOException("Illegal data access handling event "+evt); } |
