javax.rmi.CORBA
Class Stub

java.lang.Object
  extended byorg.omg.CORBA.portable.ObjectImpl
      extended byorg.omg.CORBA_2_3.portable.ObjectImpl
          extended byjavax.rmi.CORBA.Stub
All Implemented Interfaces:
Object, java.io.Serializable

public abstract class Stub
extends ObjectImpl
implements java.io.Serializable

This class is a base class for all RMI/IDL stub.

Version:
$Revision: 1.3 $ $Date: 2004/02/10 21:02:52 $
Author:
Jerome Daniel
See Also:
Serialized Form

Constructor Summary
protected Stub()
           
 
Method Summary
 void connect(ORB orb)
          This method makes the stub ready for remote communication using the specified ORB object.
 boolean equals(java.lang.Object obj)
          The equals method shall return true when used to compare stubs that represent the same remote object.
 int hashCode()
          This method shall return the same hashcode for all stubs that represent the same remote object.
 java.lang.String toString()
          This method shall return the same string for all stubs that represent the same remote object
 
Methods inherited from class org.omg.CORBA_2_3.portable.ObjectImpl
_get_codebase
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _ids, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stub

protected Stub()
Method Detail

hashCode

public int hashCode()
This method shall return the same hashcode for all stubs that represent the same remote object.

Overrides:
hashCode in class ObjectImpl

equals

public boolean equals(java.lang.Object obj)
The equals method shall return true when used to compare stubs that represent the same remote object.

Overrides:
equals in class ObjectImpl

toString

public java.lang.String toString()
This method shall return the same string for all stubs that represent the same remote object

Overrides:
toString in class ObjectImpl

connect

public void connect(ORB orb)
             throws java.rmi.RemoteException
This method makes the stub ready for remote communication using the specified ORB object. Connection normally happends implicitly when the stub is received or sent as an argument on a remote method calln but it sometimes useful to do this by making an explicit call, e.g., following deserialization.

Throws:
java.rmi.RemoteException