Base class from which all RMI-IIOP stubs must inherit.
| Method from javax.rmi.CORBA.Stub Detail: |
public void connect(ORB orb) throws RemoteException {
if (stubDelegate == null) {
setDefaultDelegate();
}
if (stubDelegate != null) {
stubDelegate.connect(this, orb);
}
}
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 method
javax.rmi.PortableRemoteObject#connect . |
public boolean equals(Object obj) {
if (stubDelegate == null) {
setDefaultDelegate();
}
if (stubDelegate != null) {
return stubDelegate.equals(this, obj);
}
return false;
}
Compares two stubs for equality. Returns true when used to compare stubs
that represent the same remote object, and false otherwise. |
public int hashCode() {
Object stubDelegateInstance = (Object) createDelegateIfSpecified(StubClassKey, defaultStubImplName);
if (stubDelegateInstance != null)
stubDelegateClass = stubDelegateInstance.getClass();
if (stubDelegate == null) {
setDefaultDelegate();
}
if (stubDelegate != null) {
return stubDelegate.hashCode(this);
}
return 0;
}
Returns a hash code value for the object which is the same for all stubs
that represent the same remote object. |
public String toString() {
if (stubDelegate == null) {
setDefaultDelegate();
}
String ior;
if (stubDelegate != null) {
ior = stubDelegate.toString(this);
if (ior == null) {
return super.toString();
} else {
return ior;
}
}
return super.toString();
}
Returns a string representation of this stub. Returns the same string
for all stubs that represent the same remote object. |