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:
    Stub
    • Method Detail

      • hashCode

        int hashCode​(Stub self)
        Delegation call for Stub.hashCode().
        Parameters:
        self - stub to call on
        Returns:
        int hashcode of the stub
      • equals

        boolean equals​(Stub self,
                       java.lang.Object obj)
        Delegation call for Stub.equals(java.lang.Object).
        Parameters:
        self - stub to call on
        obj - other object to compare
        Returns:
        true if the two objects are equal
      • toString

        java.lang.String toString​(Stub self)
        Delegation call for Stub.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 for Stub.connect(org.omg.CORBA.ORB).
        Parameters:
        self - stub to call on
        orb - 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
        Parameters:
        self - stub to read
        s - stream to read from
        Throws:
        java.io.IOException - if there was an error reading from the stream
        java.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
        Parameters:
        self - stub to write
        s - stream to write to
        Throws:
        java.io.IOException - if there was an error writing to stream