summaryrefslogtreecommitdiff
path: root/java/src/Ice/Callback_Object_ice_invoke.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2009-11-23 13:28:08 +0100
committerBenoit Foucher <benoit@zeroc.com>2009-11-23 13:28:08 +0100
commit2c578015edcb36cdc0acd0227295de1dcca1b995 (patch)
treee163980b5dabb43a40089a29fdf8ff47a3e07f1c /java/src/Ice/Callback_Object_ice_invoke.java
parentno longer generating inspect method for each Ruby exception (diff)
downloadice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.bz2
ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.xz
ice-2c578015edcb36cdc0acd0227295de1dcca1b995.zip
New AMI mapping
Diffstat (limited to 'java/src/Ice/Callback_Object_ice_invoke.java')
-rw-r--r--java/src/Ice/Callback_Object_ice_invoke.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/java/src/Ice/Callback_Object_ice_invoke.java b/java/src/Ice/Callback_Object_ice_invoke.java
new file mode 100644
index 00000000000..14e0287cd4a
--- /dev/null
+++ b/java/src/Ice/Callback_Object_ice_invoke.java
@@ -0,0 +1,44 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package Ice;
+
+/**
+ * Callback object for {@link ObjectPrx#.begin_ice_invoke}.
+ **/
+public abstract class Callback_Object_ice_invoke extends TwowayCallback
+{
+ /**
+ * The Ice run time calls <code>response</code> when an asynchronous operation invocation
+ * completes successfully or raises a user exception.
+ *
+ * @param __ret Indicates the result of the invocation. If <code>true</code>, the operation
+ * completed succesfully; if <code>false</code>, the operation raised a user exception.
+ * @param outParams Contains the encoded out-parameters of the operation (if any) if <code>ok</code>
+ * is <code>true</code>; otherwise, if <code>ok</code> is <code>false</code>, contains the
+ * encoded user exception raised by the operation.
+ **/
+ public abstract void response(boolean __ret, byte[] outParams);
+
+ public final void __completed(AsyncResult __result)
+ {
+ ByteSeqHolder outParams = new ByteSeqHolder();
+ boolean __ret = false;
+ try
+ {
+ __ret = __result.getProxy().end_ice_invoke(outParams, __result);
+ }
+ catch(LocalException __ex)
+ {
+ exception(__ex);
+ return;
+ }
+ response(__ret, outParams.value);
+ }
+}