Class StubDelegateImpl
java.lang.Object
com.sun.corba.se.impl.javax.rmi.CORBA.StubDelegateImpl
- All Implemented Interfaces:
StubDelegate
Base class from which all static RMI-IIOP stubs must inherit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConnects this stub to an ORB.booleanbooleanCompares two stubs for equality.getIOR()inthashCode()intReturns a hash code value for the object which is the same for all stubs that represent the same remote object.voidreadObject(Stub self, ObjectInputStream stream) Serialization method to restore the IOR state.Returns a string representation of this stub.voidwriteObject(Stub self, ObjectOutputStream stream) Serialization method to save the IOR state.
-
Constructor Details
-
StubDelegateImpl
public StubDelegateImpl()
-
-
Method Details
-
getIOR
-
hashCode
Returns a hash code value for the object which is the same for all stubs that represent the same remote object.- Specified by:
hashCodein interfaceStubDelegate- Returns:
- the hash code value.
-
equals
Compares two stubs for equality. Returnstruewhen used to compare stubs that represent the same remote object, andfalseotherwise.- Specified by:
equalsin interfaceStubDelegate- Parameters:
obj- the reference object with which to compare.- Returns:
trueif this object is the same as theobjargument;falseotherwise.
-
equals
-
hashCode
public int hashCode() -
toString
Returns a string representation of this stub. Returns the same string for all stubs that represent the same remote object.- Specified by:
toStringin interfaceStubDelegate- Returns:
- a string representation of this stub.
-
connect
Connects this stub to an ORB. Required after the stub is deserialized but not after it is demarshalled by an ORB stream. If an unconnected stub is passed to an ORB stream for marshalling, it is implicitly connected to that ORB. Application code should not call this method directly, but should call the portable wrapper methodPortableRemoteObject.connect(java.rmi.Remote, java.rmi.Remote).- Specified by:
connectin interfaceStubDelegate- Parameters:
orb- the ORB to connect to.- Throws:
RemoteException- if the stub is already connected to a different ORB, or if the stub does not represent an exported remote or local object.
-
readObject
public void readObject(Stub self, ObjectInputStream stream) throws IOException, ClassNotFoundException Serialization method to restore the IOR state.- Specified by:
readObjectin interfaceStubDelegate- Throws:
IOExceptionClassNotFoundException
-
writeObject
Serialization method to save the IOR state.- Specified by:
writeObjectin interfaceStubDelegate- Throws:
IOException
-