summaryrefslogtreecommitdiff
path: root/java/src/Ice/Object.java
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2009-06-04 16:19:02 +1000
committerMichi Henning <michi@zeroc.com>2009-06-04 16:19:02 +1000
commit45a3f61401e8c6cccc841fa43a4b35f9f5a444a8 (patch)
tree2d328e013b11a6e3724256cb471f6827c94b6e7d /java/src/Ice/Object.java
parentFixed BCC compile errors (diff)
downloadice-45a3f61401e8c6cccc841fa43a4b35f9f5a444a8.tar.bz2
ice-45a3f61401e8c6cccc841fa43a4b35f9f5a444a8.tar.xz
ice-45a3f61401e8c6cccc841fa43a4b35f9f5a444a8.zip
Lots of javadoc comments.
Diffstat (limited to 'java/src/Ice/Object.java')
-rw-r--r--java/src/Ice/Object.java100
1 files changed, 100 insertions, 0 deletions
diff --git a/java/src/Ice/Object.java b/java/src/Ice/Object.java
index ba4ec721da5..4c6fd03267a 100644
--- a/java/src/Ice/Object.java
+++ b/java/src/Ice/Object.java
@@ -20,23 +20,123 @@ public interface Object
**/
int ice_hash();
+ /**
+ * Tests whether this object supports a specific Slice interface.
+ *
+ * @param s The type ID of the Slice interface to test against.
+ * @return <code>true</code> if this object has the interface
+ * specified by <code>s</code> or derives from the interface
+ * specified by <code>s</code>.
+ **/
boolean ice_isA(String s);
+
+ /**
+ * Tests whether this object supports a specific Slice interface.
+ *
+ * @param s The type ID of the Slice interface to test against.
+ * @param current The <code>Current</code> object for the invocation.
+ * @return <code>true</code> if this object has the interface
+ * specified by <code>s</code> or derives from the interface
+ * specified by <code>s</code>.
+ **/
boolean ice_isA(String s, Current current);
+ /**
+ * Tests whether this object can be reached.
+ **/
void ice_ping();
+
+ /**
+ * Tests whether this object can be reached.
+ *
+ * @param current The <code>Current</code> object for the invocation.
+ **/
void ice_ping(Current current);
+ /**
+ * Returns the Slice type IDs of the interfaces supported by this object.
+ *
+ * @return The Slice type Ids of the interfaces supported by this object, in base-to-derived
+ * order. The first element of the return array is always <code>::Ice::Object</code>.
+ **/
String[] ice_ids();
+
+ /**
+ * Returns the Slice type IDs of the interfaces supported by this object.
+ *
+ * @param current The <code>Current</code> object for the invocation.
+ * @return The Slice type Ids of the interfaces supported by this object, in base-to-derived
+ * order. The first element of the return array is always <code>::Ice::Object</code>.
+ **/
String[] ice_ids(Current current);
+ /**
+ * Returns the Slice type ID of the most-derived interface supported by this object.
+ *
+ * @return The Slice type ID of the most-derived interface.
+ **/
String ice_id();
+
+ /**
+ * Returns the Slice type ID of the most-derived interface supported by this object.
+ *
+ * @param current The <code>Current</code> object for the invocation.
+ * @return The Slice type ID of the most-derived interface.
+ **/
String ice_id(Current current);
+ /**
+ * Returns the Freeze metadata attributes for an operation.
+ *
+ * @param The name of the operation.
+ * @return The least significant bit indicates whether the operation is a read
+ * or write operation. If the bit is set, the operation is a write operation.
+ * The expression <code>ice_operationAttributes("op") & 0x1</code> is true if
+ * the operation has a <code>["freeze:write"]</code> metadata directive.
+ * <p>
+ * The second- and third least significant bit indicate the transactional mode
+ * of the operation. The expression <code>ice_operationAttributes("op") & 0x6 >> 1</code>
+ * indicates the transactional mode as follows:
+ * <dl>
+ * <dt>0</dt>
+ * <dd><code>["freeze:read:supports"]</code></dd>
+ * <dt>1</dt>
+ * <dd><code>["freeze:read:mandatory"]</code> or <code>["freeze:write:mandatory"]</code></dd>
+ * <dt>2</dt>
+ * <dd><code>["freeze:read:required"]</code> or <code>["freeze:write:required"]</code></dd>
+ * <dt>3</dt>
+ * <dd><code>["freeze:read:never"]</code></dd>
+ * </dl>
+ *
+ * @see Freeze:TransactionalEvictor
+ **/
int ice_operationAttributes(String operation);
+ /**
+ * The Ice run time invokes this method prior to marshaling an object's data members. This allows a subclass
+ * to override this method in order to validate its data members.
+ **/
void ice_preMarshal();
+
+ /**
+ * This Ice run time invokes this method vafter unmarshaling an object's data members. This allows a
+ * subclass to override this method in order to perform additional initialization.
+ **/
void ice_postUnmarshal();
+ /**
+ * Dispatches an invocation to a servant. This method is used by dispatch interceptors to forward an invocation
+ * to a servant (or to another interceptor).
+ *
+ * @param request The details of the invocation.
+ * @param cb The callback object for asynchchronous dispatch. For synchronous dispatch, the callback object
+ * must be <code>null</code>.
+ * @return The dispatch status for the operation.
+ *
+ * @see DispatchInterceptor
+ * @see DispatchInterceptorAsyncCallback
+ * @see DispatchStatus
+ **/
DispatchStatus ice_dispatch(Request request, DispatchInterceptorAsyncCallback cb);
DispatchStatus __dispatch(IceInternal.Incoming in, Current current);