org.objectweb.david.libs.binding.rmi
Class ORBPortableRemoteObjectDelegate

java.lang.Object
  extended byorg.objectweb.david.libs.binding.rmi.ORBPortableRemoteObjectDelegate
All Implemented Interfaces:
DefaultStubTable, javax.rmi.CORBA.PortableRemoteObjectDelegate

public class ORBPortableRemoteObjectDelegate
extends java.lang.Object
implements javax.rmi.CORBA.PortableRemoteObjectDelegate, DefaultStubTable

This class provides an implementation for PortableRemoteObjectDelegate. It uses the connect and disconnect methods of ORB.


Field Summary
 
Fields inherited from interface org.objectweb.david.apis.stub_factories.DefaultStubTable
default_stub_table
 
Constructor Summary
ORBPortableRemoteObjectDelegate()
          Constructs a new ORBPortableRemoteObjectDelegate instance.
 
Method Summary
 void connect(java.rmi.Remote target, java.rmi.Remote source)
           
 void exportObject(java.rmi.Remote obj)
           
 java.lang.Object narrow(java.lang.Object obj, java.lang.Class new_class)
           
 java.rmi.Remote toStub(java.rmi.Remote obj)
           
 void unexportObject(java.rmi.Remote obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORBPortableRemoteObjectDelegate

public ORBPortableRemoteObjectDelegate()
Constructs a new ORBPortableRemoteObjectDelegate instance.

Method Detail

exportObject

public void exportObject(java.rmi.Remote obj)
                  throws java.rmi.RemoteException
Specified by:
exportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Throws:
java.rmi.RemoteException

toStub

public java.rmi.Remote toStub(java.rmi.Remote obj)
                       throws java.rmi.NoSuchObjectException
Specified by:
toStub in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Throws:
java.rmi.NoSuchObjectException

unexportObject

public void unexportObject(java.rmi.Remote obj)
                    throws java.rmi.NoSuchObjectException
Specified by:
unexportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Throws:
java.rmi.NoSuchObjectException

narrow

public java.lang.Object narrow(java.lang.Object obj,
                               java.lang.Class new_class)
                        throws java.lang.ClassCastException
Specified by:
narrow in interface javax.rmi.CORBA.PortableRemoteObjectDelegate
Throws:
java.lang.ClassCastException

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