Interface PortableRemoteObjectDelegate

  • All Known Implementing Classes:
    PortableRemoteObject

    public interface PortableRemoteObjectDelegate
    Supports delegation for method implementations in PortableRemoteObject. The delegate is a singleton instance of a class that implements this interface and provides a replacement implementation for all the methods of javax.rmi.PortableRemoteObject. Delegates are enabled by providing the delegate's class name as the value of the javax.rmi.CORBA.PortableRemoteObjectClass system property.
    See Also:
    PortableRemoteObject
    • Method Detail

      • exportObject

        void exportObject​(java.rmi.Remote obj)
                   throws java.rmi.RemoteException
        Parameters:
        obj - object to export
        Throws:
        java.rmi.RemoteException - if the object cannot be exported
      • toStub

        java.rmi.Remote toStub​(java.rmi.Remote obj)
                        throws java.rmi.NoSuchObjectException
        Parameters:
        obj - remote to convert to stub
        Returns:
        stub of the remote
        Throws:
        java.rmi.NoSuchObjectException - if the object does not exist
      • unexportObject

        void unexportObject​(java.rmi.Remote obj)
                     throws java.rmi.NoSuchObjectException
        Parameters:
        obj - object to unremove
        Throws:
        java.rmi.NoSuchObjectException - if the object does not exist
      • narrow

        java.lang.Object narrow​(java.lang.Object narrowFrom,
                                java.lang.Class narrowTo)
                         throws java.lang.ClassCastException
        Parameters:
        narrowFrom - object to narrow from
        narrowTo - target to narrow to
        Returns:
        object of the desired type
        Throws:
        java.lang.ClassCastException - if the object cannot be narrowed
      • connect

        void connect​(java.rmi.Remote target,
                     java.rmi.Remote source)
              throws java.rmi.RemoteException
        Parameters:
        target - remote object to connect
        source - starting object
        Throws:
        java.rmi.RemoteException - if an error occurred connecting