Package javax.rmi.CORBA
Interface StubDelegate
- All Known Implementing Classes:
StubDelegateImpl
public interface StubDelegate
Supports delegation for method implementations in
Stub
.
A delegate is an instance of a class that implements this
interface and provides a replacement implementation for all the
methods of javax.rmi.CORBA.Stub
. If delegation is
enabled, each stub has an associated delegate.
Delegates are enabled by providing the delegate's class name as the
value of the
javax.rmi.CORBA.StubClass
system property.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Delegation call forStub.connect(org.omg.CORBA.ORB)
.boolean
Delegation call forStub.equals(java.lang.Object)
.int
Delegation call forStub.hashCode()
.void
readObject
(Stub self, ObjectInputStream s) Delegation call forStub.readObject(java.io.ObjectInputStream)
.Delegation call forStub.toString()
.void
writeObject
(Stub self, ObjectOutputStream s) Delegation call forStub.writeObject(java.io.ObjectOutputStream)
.
-
Method Details
-
hashCode
Delegation call forStub.hashCode()
.- Parameters:
self
- stub to call on- Returns:
- int hashcode of the stub
-
equals
Delegation call forStub.equals(java.lang.Object)
.- Parameters:
self
- stub to call onobj
- other object to compare- Returns:
- true if the two objects are equal
-
toString
Delegation call forStub.toString()
.- Parameters:
self
- to call toString on- Returns:
- String representation of the Stub
-
connect
Delegation call forStub.connect(org.omg.CORBA.ORB)
.- Parameters:
self
- stub to call onorb
- the ORB to connect to- Throws:
RemoteException
- if there was an error connecting
-
readObject
Delegation call forStub.readObject(java.io.ObjectInputStream)
.- Parameters:
self
- stub to reads
- stream to read from- Throws:
IOException
- if there was an error reading from the streamClassNotFoundException
- if the class that was represented by the steam cannot be found
-
writeObject
Delegation call forStub.writeObject(java.io.ObjectOutputStream)
.- Parameters:
self
- stub to writes
- stream to write to- Throws:
IOException
- if there was an error writing to stream
-