org.jacorb.orb.rmi

Class PortableRemoteObjectDelegateImpl

public class PortableRemoteObjectDelegateImpl extends Object implements PortableRemoteObjectDelegate

Version: $Id: PortableRemoteObjectDelegateImpl.java,v 1.6 2006/12/06 00:13:57 alphonse.bendt Exp $

Author: Gerald Brose

Method Summary
voidconnect(Remote target, Remote source)
voidexportObject(Remote obj)
Export an RMI object as a CORBA object
static ORBgetORB()
Return the ORB to be used for RMI communications.
Objectnarrow(Object obj, Class newClass)
Narrow the remote object.
static voidsetORB(ORB orb)
Set the ORB to be used for RMI communications.
RemotetoStub(Remote obj)
Return the Stub for a RMI object.
voidunexportObject(Remote obj)
Deactivate the exported RMI object.

Method Detail

connect

public void connect(Remote target, Remote source)

See Also: javax.rmi.CORBA.PortableRemoteObjectDelegate#connect(java.rmi.Remote, java.rmi.Remote)

exportObject

public void exportObject(Remote obj)
Export an RMI object as a CORBA object

See Also: javax.rmi.CORBA.PortableRemoteObjectDelegate#exportObject(java.rmi.Remote)

getORB

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

Returns: The ORB

narrow

public Object narrow(Object obj, Class newClass)
Narrow the remote object.

Parameters: obj The remote object newClass The class to narrow to

Returns: the narrowed object

See Also: javax.rmi.CORBA.PortableRemoteObjectDelegate#narrow(java.lang.Object, java.lang.Class)

setORB

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

Parameters: orb The ORB to use

toStub

public Remote toStub(Remote obj)
Return the Stub for a RMI object.

Parameters: obj The RMI object

Returns: The Stub object

See Also: javax.rmi.CORBA.PortableRemoteObjectDelegate#toStub(java.rmi.Remote)

unexportObject

public void unexportObject(Remote obj)
Deactivate the exported RMI object.

Parameters: obj The RMI object

See Also: javax.rmi.CORBA.PortableRemoteObjectDelegate#unexportObject(java.rmi.Remote)