Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2005-01-20 04:41:37 +0000
committerslewis2005-01-20 04:41:37 +0000
commit52d709b5a35a4e7477b5db09ff4749109151590f (patch)
treec8b3cc7b207ba7373a2745e13932c64126d17a08
parent0cc9dd0c64aee75cce2c10f2720a0aba9426a016 (diff)
downloadorg.eclipse.ecf-52d709b5a35a4e7477b5db09ff4749109151590f.tar.gz
org.eclipse.ecf-52d709b5a35a4e7477b5db09ff4749109151590f.tar.xz
org.eclipse.ecf-52d709b5a35a4e7477b5db09ff4749109151590f.zip
Added sendCreateResponse method to ISharedObjectContext. Added implementations in TestContainer and SOContainer (generic)
-rw-r--r--framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOContext.java12
-rw-r--r--framework/bundles/org.eclipse.ecf/META-INF/MANIFEST.MF2
-rw-r--r--framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ISharedObjectContext.java17
3 files changed, 30 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOContext.java b/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOContext.java
index 19820e460..609bc9ec2 100644
--- a/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOContext.java
+++ b/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/generic/SOContext.java
@@ -178,6 +178,17 @@ public class SOContext implements ISharedObjectContext {
}
}
+ /* (non-Javadoc)
+ * @see org.eclipse.ecf.core.ISharedObjectContext#sendCreateResponse(org.eclipse.ecf.core.identity.ID, java.lang.Throwable, long)
+ */
+ public void sendCreateResponse(ID toContainerID, Throwable throwable, long identifier) throws IOException {
+ if (isInactive()) {
+ return;
+ } else {
+ container.sendCreateResponse(toContainerID, sharedObjectID, throwable, identifier);
+ }
+ }
+
/*
* (non-Javadoc)
*
@@ -226,4 +237,5 @@ public class SOContext implements ISharedObjectContext {
return container.getOSGIServiceInterface();
}
}
+
} \ No newline at end of file
diff --git a/framework/bundles/org.eclipse.ecf/META-INF/MANIFEST.MF b/framework/bundles/org.eclipse.ecf/META-INF/MANIFEST.MF
index 9eba2be6e..2fceaadcf 100644
--- a/framework/bundles/org.eclipse.ecf/META-INF/MANIFEST.MF
+++ b/framework/bundles/org.eclipse.ecf/META-INF/MANIFEST.MF
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-Name: ECF - Eclipse Communications Framework Core
Bundle-SymbolicName: org.eclipse.ecf
-Bundle-Version: 0.4.0
+Bundle-Version: 0.5.0
Bundle-ClassPath: ecf.jar
Bundle-Activator: org.eclipse.ecf.internal.core.ECFPlugin
Bundle-Vendor: Eclipse.org
diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ISharedObjectContext.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ISharedObjectContext.java
index 4f4c0c381..86d5327da 100644
--- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ISharedObjectContext.java
+++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/ISharedObjectContext.java
@@ -114,6 +114,23 @@ public interface ISharedObjectContext {
*/
public void sendCreate(ID toContainerID, SharedObjectDescription sd)
throws IOException;
+
+ /**
+ * Send create response back to an ISharedObject with the
+ * same ID as this instance. This method allows ISharedObject instances
+ * (with a reference to a valid ISharedObjectContext) to send messages to
+ * remote containers asking them to deliver the create response status back to the
+ * ISharedObject.
+ *
+ * @param toContainerID the ID of the container that is to receive this response
+ * @param throwable a throwable associated with the creation. Null means that
+ * no exception occured
+ * @param identifier the identifier used in the original create message (in the shared
+ * object description)
+ * @exception IOException thrown if the create response cannot be sent
+ */
+ public void sendCreateResponse(ID toContainerID, Throwable throwable, long identifier)
+ throws IOException;
/**
* Send message to dispose of a remote instance of the ISharedObject with
* same ID as this instance. This method allows ISharedObject instances to control the

Back to the top