public interface StubDelegate
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.Modifier and Type | Method and Description |
---|---|
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.
|
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.
orb
- the ORB where the Stub must be connected.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.boolean equals(Stub self, Object obj)
void readObject(Stub self, ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
void writeObject(Stub self, ObjectOutputStream s) throws IOException
IOException