org.jacorb.orb.rmi
Class PortableRemoteObjectDelegateImpl

java.lang.Object
  extended byorg.jacorb.orb.rmi.PortableRemoteObjectDelegateImpl
All Implemented Interfaces:
javax.rmi.CORBA.PortableRemoteObjectDelegate

public class PortableRemoteObjectDelegateImpl
extends java.lang.Object
implements javax.rmi.CORBA.PortableRemoteObjectDelegate


Constructor Summary
PortableRemoteObjectDelegateImpl()
           
 
Method Summary
 void connect(java.rmi.Remote target, java.rmi.Remote source)
           
 void exportObject(java.rmi.Remote obj)
          Export an RMI object as a CORBA object
static ORB getORB()
          Return the ORB to be used for RMI communications.
 java.lang.Object narrow(java.lang.Object obj, java.lang.Class newClass)
          Narrow the remote object.
static void setORB(ORB orb)
          Set the ORB to be used for RMI communications.
 java.rmi.Remote toStub(java.rmi.Remote obj)
          Return the Stub for a RMI object.
 void unexportObject(java.rmi.Remote obj)
          Deactivate the exported RMI object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableRemoteObjectDelegateImpl

public PortableRemoteObjectDelegateImpl()
Method Detail

getORB

public static ORB getORB()
Return the ORB to be used for RMI communications.

Returns:
The ORB

setORB

public static void setORB(ORB orb)
Set the ORB to be used for RMI communications.

Parameters:
orb - The ORB to use

exportObject

public void exportObject(java.rmi.Remote obj)
                  throws java.rmi.RemoteException
Export an RMI object as a CORBA object

Specified by:
exportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Throws:
java.rmi.RemoteException
See Also:
PortableRemoteObjectDelegate.exportObject(java.rmi.Remote)

toStub

public java.rmi.Remote toStub(java.rmi.Remote obj)
                       throws java.rmi.NoSuchObjectException
Return the Stub for a RMI object.

Specified by:
toStub in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Parameters:
obj - The RMI object
Returns:
The Stub object
Throws:
java.rmi.NoSuchObjectException
See Also:
PortableRemoteObjectDelegate.toStub(java.rmi.Remote)

unexportObject

public void unexportObject(java.rmi.Remote obj)
                    throws java.rmi.NoSuchObjectException
Deactivate the exported RMI object.

Specified by:
unexportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Parameters:
obj - The RMI object
Throws:
java.rmi.NoSuchObjectException
See Also:
PortableRemoteObjectDelegate.unexportObject(java.rmi.Remote)

narrow

public java.lang.Object narrow(java.lang.Object obj,
                               java.lang.Class newClass)
                        throws java.lang.ClassCastException
Narrow the remote object.

Specified by:
narrow in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Parameters:
obj - The remote object
newClass - The class to narrow to
Returns:
the narrowed object
Throws:
java.lang.ClassCastException
See Also:
PortableRemoteObjectDelegate.narrow(java.lang.Object, java.lang.Class)

connect

public void connect(java.rmi.Remote target,
                    java.rmi.Remote source)
             throws java.rmi.RemoteException
Specified by:
connect in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Throws:
java.rmi.RemoteException
See Also:
PortableRemoteObjectDelegate.connect(java.rmi.Remote, java.rmi.Remote)