org.objectweb.carol.rmi.multi

Class MultiPRODelegate

Implemented Interfaces:
PortableRemoteObjectDelegate

public class MultiPRODelegate
extends java.lang.Object
implements PortableRemoteObjectDelegate

Class MultiPRODelegate This is a proxy for multi orb portable remote object delegate reference this class with the systeme property : java -Djavax.rmi.CORBA.PortableRemoteObjectClass=org.objectweb.carol.rmi.multi.MultiPRODelegate ... for the moment this class is only for one orb This class parse the communication.xml file for initilization

Version:
1.0, 15/07/2002

Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

Constructor Summary

MultiPRODelegate()

Method Summary

void
connect(Remote target, Remote source)
Connection method all available protocols
void
exportObject(Remote obj)
Export a Remote Object on all available protocols
Object
narrow(Object obj, Class newClass)
Narrow method on the default protocol
Remote
toStub(Remote obj)
To stub method on the iiop protocol
void
unexportObject(Remote obj)
Method for unexport object on all available protocols

Constructor Details

MultiPRODelegate

public MultiPRODelegate()
            throws RemoteException

Method Details

connect

public void connect(Remote target,
                    Remote source)
            throws RemoteException
Connection method all available protocols

Parameters:
target - a remote object;
source - another remote object;


exportObject

public void exportObject(Remote obj)
            throws RemoteException
Export a Remote Object on all available protocols

Parameters:


narrow

public Object narrow(Object obj,
                     Class newClass)
            throws ClassCastException
Narrow method on the default protocol

Parameters:

Returns:
an object of type newClass


toStub

public Remote toStub(Remote obj)
            throws NoSuchObjectException
To stub method on the iiop protocol

Parameters:

Returns:
the stub object


unexportObject

public void unexportObject(Remote obj)
            throws NoSuchObjectException
Method for unexport object on all available protocols

Parameters: