Package javax.rmi.CORBA
Interface StubDelegate
-
- All Known Implementing Classes:
StubDelegateImpl
public interface StubDelegate
Supports delegation for method implementations inStub
. A delegate is an instance of a class that implements this interface and provides a replacement implementation for all the methods ofjavax.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 thejavax.rmi.CORBA.StubClass
system property.- See Also:
Stub
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
connect(Stub self, ORB orb)
Delegation call forStub.connect(org.omg.CORBA.ORB)
.boolean
equals(Stub self, java.lang.Object obj)
Delegation call forStub.equals(java.lang.Object)
.int
hashCode(Stub self)
Delegation call forStub.hashCode()
.void
readObject(Stub self, java.io.ObjectInputStream s)
Delegation call forStub.readObject(java.io.ObjectInputStream)
.java.lang.String
toString(Stub self)
Delegation call forStub.toString()
.void
writeObject(Stub self, java.io.ObjectOutputStream s)
Delegation call forStub.writeObject(java.io.ObjectOutputStream)
.
-
-
-
Method Detail
-
hashCode
int hashCode(Stub self)
Delegation call forStub.hashCode()
.- Parameters:
self
- stub to call on- Returns:
- int hashcode of the stub
-
equals
boolean equals(Stub self, java.lang.Object obj)
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
java.lang.String toString(Stub self)
Delegation call forStub.toString()
.- Parameters:
self
- to call toString on- Returns:
- String representation of the Stub
-
connect
void connect(Stub self, ORB orb) throws java.rmi.RemoteException
Delegation call forStub.connect(org.omg.CORBA.ORB)
.- Parameters:
self
- stub to call onorb
- the ORB to connect to- Throws:
java.rmi.RemoteException
- if there was an error connecting
-
readObject
void readObject(Stub self, java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundException
Delegation call forStub.readObject(java.io.ObjectInputStream)
.- Parameters:
self
- stub to reads
- stream to read from- Throws:
java.io.IOException
- if there was an error reading from the streamjava.lang.ClassNotFoundException
- if the class that was represented by the steam cannot be found
-
writeObject
void writeObject(Stub self, java.io.ObjectOutputStream s) throws java.io.IOException
Delegation call forStub.writeObject(java.io.ObjectOutputStream)
.- Parameters:
self
- stub to writes
- stream to write to- Throws:
java.io.IOException
- if there was an error writing to stream
-
-