summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-04-06 06:51:15 -0700
committerMark Spruiell <mes@zeroc.com>2009-04-06 06:51:15 -0700
commit3fd7db3059acbcff445dad799252e35b3009f6bb (patch)
tree2a8201cd85e59aad9e80a18103d3443bdb93f973
parentMerge branch 'master' of ssh://cvs.wpb.zeroc.com/home/git/ice (diff)
downloadice-3fd7db3059acbcff445dad799252e35b3009f6bb.tar.bz2
ice-3fd7db3059acbcff445dad799252e35b3009f6bb.tar.xz
ice-3fd7db3059acbcff445dad799252e35b3009f6bb.zip
reverting removal of getDefaultContext/setDefaultContext in Communicator.ice
-rw-r--r--slice/Ice/Communicator.ice33
1 files changed, 33 insertions, 0 deletions
diff --git a/slice/Ice/Communicator.ice b/slice/Ice/Communicator.ice
index 83513f1ebd6..aaffff1b0f3 100644
--- a/slice/Ice/Communicator.ice
+++ b/slice/Ice/Communicator.ice
@@ -311,6 +311,39 @@ local interface Communicator
**/
["cpp:const"] ObjectFactory findObjectFactory(string id);
+
+ /**
+ *
+ * Get the currently-set default context.
+ *
+ * <p class="Deprecated">This operation is deprecated as of version 3.2.
+ *
+ * @return The currently established default context. If no
+ * default context is currently set, [getDefaultContext]
+ * returns an empty context.
+ *
+ * @see setDefaultContext
+ **/
+ ["cpp:const", "deprecate:getDefaultContext is deprecated, use per-proxy contexts or implicit contexts (if applicable) instead."]
+ Context getDefaultContext();
+
+ /**
+ *
+ * Set a default context on this communicator. All newly
+ * created proxies will use this default context. This operation
+ * has no effect on existing proxies.
+ *
+ * <p class="Note"> You can also set a context for an individual proxy
+ * by calling the operation [ice_context] on the proxy.</p>
+ *
+ * <p class="Deprecated">This operation is deprecated as of version 3.2.
+ *
+ * @param ctx The default context to be set.
+ * @see getDefaultContext
+ **/
+ ["deprecate:setDefaultContext is deprecated, use per-proxy contexts or implicit contexts (if applicable) instead."]
+ void setDefaultContext(Context ctx);
+
/**
* Get the implicit context associated with this communicator.
*