org.sapia.ubik.rmi.server.invocation
Class ClientPostInvokeEvent

java.lang.Object
  extended by org.sapia.ubik.rmi.server.invocation.ClientPostInvokeEvent
All Implemented Interfaces:
Event

public class ClientPostInvokeEvent
extends java.lang.Object
implements Event

This event is generated on the client-side, after a given method has been invoked.

Author:
Yanick Duchesne
Copyright:
Copyright © 2002-2003 Sapia Open Source Software. All Rights Reserved.
License:
Read the license.txt file of the jar or visit the license page at the Sapia OSS web site

Constructor Summary
ClientPostInvokeEvent(InvokeCommand toInvoke, java.lang.Object toReturn)
          Creates an instance of this class.
 
Method Summary
 InvokeCommand getCommand()
          Returns the command to invoke.
 java.lang.Object getReturnObject()
          Returns the object that was returned by the remote method call.
 void setReturnObject(java.lang.Object object)
          Sets this instance return object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientPostInvokeEvent

public ClientPostInvokeEvent(InvokeCommand toInvoke,
                             java.lang.Object toReturn)
Creates an instance of this class.

Parameters:
invocable - the Invocable command to was sent to the server to perform the method call.
toReturn - the object returned by the remote method (might be null (if the called method returned such); must be Throwable if the called method threw and exception).
Method Detail

getCommand

public InvokeCommand getCommand()
Returns the command to invoke.

Returns:
an InvokeCommand instance.

setReturnObject

public void setReturnObject(java.lang.Object object)
Sets this instance return object. The passed in object must be an instance of the original one.

This method call is ignored if the original object reference is null, meaning that the method actually returned nothing, or has a return type of void.

Parameters:
an - Object.

getReturnObject

public java.lang.Object getReturnObject()
Returns the object that was returned by the remote method call.

Important: the object that will be returned might be an instance of Throwable, provided the method threw an exception.

Returns:
an Object, or null if the invoked remote method returned nothing, or has a return type of void.


Copyright © 2010 Sapia OSS. All Rights Reserved.