javax.rmi.CORBA
Interface StubDelegate


public interface StubDelegate

A delegate, implementing the functionality, provided by the Stub. The default delegate can be altered by setting the system property "javax.rmi.CORBA.StubClass" to the name of the alternative class that must implement StubDelegate.


Method Summary
 void connect(Stub self, ORB orb)
           Makes the stub ready for remote communication using the given ORB.
 boolean equals(Stub self, Object obj)
          The objects stubs are equal if they refer the same remote object.
 int hashCode(Stub self)
          Get the hashcode fo this delegate.
 void readObject(Stub self, ObjectInputStream s)
          Read this stub from the object input stream.
 String toString(Stub self)
          Get the string representation of this stub.
 void writeObject(Stub self, ObjectOutputStream s)
          Write this stub to the object output stream.
 

Method Detail

connect

void connect(Stub self,
             ORB orb)
             throws RemoteException

Makes the stub ready for remote communication using the given ORB.

It is frequently easier to call PortableRemoteObject#connect rather than this method.

Parameters:
orb - the ORB where the Stub must be connected.
Throws:
RemoteException - if the stub is already connected to some other ORB. If the stub is already connected to the ORB that was passed as parameter, the method returns without action.

equals

boolean equals(Stub self,
               Object obj)
The objects stubs are equal if they refer the same remote object.


hashCode

int hashCode(Stub self)
Get the hashcode fo this delegate.


readObject

void readObject(Stub self,
                ObjectInputStream s)
                throws IOException,
                       ClassNotFoundException
Read this stub from the object input stream.

Throws:
IOException
ClassNotFoundException

writeObject

void writeObject(Stub self,
                 ObjectOutputStream s)
                 throws IOException
Write this stub to the object output stream.

Throws:
IOException

toString

String toString(Stub self)
Get the string representation of this stub.