javax.rmi.CORBA

Interface StubDelegate

public interface StubDelegate

A delegate, implementing the functionality, provided by the {@link 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
voidconnect(Stub self, ORB orb)

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

booleanequals(Stub self, Object obj)
The objects stubs are equal if they refer the same remote object.
inthashCode(Stub self)
Get the hashcode fo this delegate.
voidreadObject(Stub self, ObjectInputStream s)
Read this stub from the object input stream.
StringtoString(Stub self)
Get the string representation of this stub.
voidwriteObject(Stub self, ObjectOutputStream s)
Write this stub to the object output stream.

Method Detail

connect

public void connect(Stub self, ORB orb)

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

It is frequently easier to call {@link 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

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

hashCode

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

readObject

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

toString

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

writeObject

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