Interface UtilDelegate

  • All Known Implementing Classes:
    Util

    public interface UtilDelegate
    Supports delegation for method implementations in Util. 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.CORBA.Util. Delegation is enabled by providing the delegate's class name as the value of the javax.rmi.CORBA.UtilClass system property.
    See Also:
    Util
    • Method Detail

      • unexportObject

        void unexportObject​(java.rmi.Remote target)
                     throws java.rmi.NoSuchObjectException
        Parameters:
        target - the object to unexport
        Throws:
        java.rmi.NoSuchObjectException - if the target object does not exist
      • getTie

        Tie getTie​(java.rmi.Remote target)
        Delegation call for Util.getTie(java.rmi.Remote).
        Parameters:
        target - the object to get the tie for
        Returns:
        the tie or null if no tie is registered for the given target.
      • getCodebase

        java.lang.String getCodebase​(java.lang.Class clz)
        Parameters:
        clz - the class to get a codebase for.
        Returns:
        a space-separated list of URLs, or null.
      • loadClass

        java.lang.Class loadClass​(java.lang.String className,
                                  java.lang.String remoteCodebase,
                                  java.lang.ClassLoader loader)
                           throws java.lang.ClassNotFoundException
        Parameters:
        className - the name of the class.
        remoteCodebase - a space-separated list of URLs at which the class might be found. May be null.
        loader - a ClassLoader that may be used to load the class if all other methods fail.
        Returns:
        the Class object representing the loaded class.
        Throws:
        java.lang.ClassNotFoundException - if class cannot be loaded.
      • isLocal

        boolean isLocal​(Stub stub)
                 throws java.rmi.RemoteException
        Parameters:
        stub - the stub to test.
        Returns:
        The is_local() method returns true if the servant incarnating the object is located in the same process as the stub and they both share the same ORB instance. The is_local() method returns false otherwise. The default behaviour of is_local() is to return false.
        Throws:
        java.rmi.RemoteException - The Java to IDL specification does not specify the conditions that cause a RemoteException to be thrown.
      • wrapException

        java.rmi.RemoteException wrapException​(java.lang.Throwable obj)
        Parameters:
        obj - the exception to wrap.
        Returns:
        the wrapped exception.
      • copyObject

        java.lang.Object copyObject​(java.lang.Object obj,
                                    ORB orb)
                             throws java.rmi.RemoteException
        Parameters:
        obj - the object to copy or connect.
        orb - the ORB
        Returns:
        the copied or connected object.
        Throws:
        java.rmi.RemoteException - if the object could not be copied or connected.
      • copyObjects

        java.lang.Object[] copyObjects​(java.lang.Object[] obj,
                                       ORB orb)
                                throws java.rmi.RemoteException
        Parameters:
        obj - the objects to copy or connect.
        orb - the ORB
        Returns:
        the copied or connected objects.
        Throws:
        java.rmi.RemoteException - if the objects could not be copied or connected.