org.openorb.rmi.system
Class StubDelegateImpl

java.lang.Object
  |
  +--org.openorb.rmi.system.StubDelegateImpl
All Implemented Interfaces:
javax.rmi.CORBA.StubDelegate

public class StubDelegateImpl
extends java.lang.Object
implements javax.rmi.CORBA.StubDelegate

This class provides a default implementation for javax.rmi.CORBA.StubDelegate

Version:
$Revision: 1.8 $ $Date: 2002/07/14 20:34:33 $
Author:
Jerome Daniel

Constructor Summary
StubDelegateImpl()
          Empty constructor.
StubDelegateImpl(org.omg.IOP.IOR ior)
          Construct delegate with IOR.
 
Method Summary
 void connect(javax.rmi.CORBA.Stub self, org.omg.CORBA.ORB orb)
          This method makes the stub ready for remote communication using the specified ORB object.
 boolean equals(javax.rmi.CORBA.Stub self, java.lang.Object obj)
          The equals method shall return true when used to compare stubs that represent the same remote object.
 int hashCode(javax.rmi.CORBA.Stub self)
          This method shall return the same hashcode for all stubs that represent the same remote object.
 void readObject(javax.rmi.CORBA.Stub self, java.io.ObjectInputStream s)
          This method supports stub deserialization by restoring the IOR associated with the stub.
 java.lang.String toString(javax.rmi.CORBA.Stub self)
          This method shall return the same string for all stubs that represent the same remote object
 void writeObject(javax.rmi.CORBA.Stub self, java.io.ObjectOutputStream s)
          This method supports stub serialization by saving the IOR associated with the stub.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubDelegateImpl

public StubDelegateImpl()
Empty constructor.

StubDelegateImpl

public StubDelegateImpl(org.omg.IOP.IOR ior)
Construct delegate with IOR. This delegate can then be connected.
Method Detail

hashCode

public int hashCode(javax.rmi.CORBA.Stub self)
This method shall return the same hashcode for all stubs that represent the same remote object.
Specified by:
hashCode in interface javax.rmi.CORBA.StubDelegate

equals

public boolean equals(javax.rmi.CORBA.Stub self,
                      java.lang.Object obj)
The equals method shall return true when used to compare stubs that represent the same remote object.
Specified by:
equals in interface javax.rmi.CORBA.StubDelegate

toString

public java.lang.String toString(javax.rmi.CORBA.Stub self)
This method shall return the same string for all stubs that represent the same remote object
Specified by:
toString in interface javax.rmi.CORBA.StubDelegate

connect

public void connect(javax.rmi.CORBA.Stub self,
                    org.omg.CORBA.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.
Specified by:
connect in interface javax.rmi.CORBA.StubDelegate

writeObject

public void writeObject(javax.rmi.CORBA.Stub self,
                        java.io.ObjectOutputStream s)
                 throws java.io.IOException
This method supports stub serialization by saving the IOR associated with the stub.
Specified by:
writeObject in interface javax.rmi.CORBA.StubDelegate

readObject

public void readObject(javax.rmi.CORBA.Stub self,
                       java.io.ObjectInputStream s)
                throws java.io.IOException,
                       java.lang.ClassNotFoundException
This method supports stub deserialization by restoring the IOR associated with the stub.
Specified by:
readObject in interface javax.rmi.CORBA.StubDelegate