org.objectweb.carol.rmi.multi

Class JeremiePRODelegate

Implemented Interfaces:
PortableRemoteObjectDelegate

public class JeremiePRODelegate
extends java.lang.Object
implements PortableRemoteObjectDelegate

class JeremiePRODelegate for the mapping between Jeremie UnicastRemoteObject and PortableRemoteObject

Version:
1.0, 15/07/2002

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

Constructor Summary

JeremiePRODelegate()
Empty constructor for instanciate this class

Method Summary

void
connect(Remote target, Remote source)
Connection method
void
exportObject(Remote obj)
Export a Remote Object
Object
narrow(Object obj, Class newClass)
Narrow method
Remote
toStub(Remote obj)
To stub method
void
unexportObject(Remote obj)
Method for unexport object

Constructor Details

JeremiePRODelegate

public JeremiePRODelegate()
            throws Exception
Empty constructor for instanciate this class

Method Details

connect

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

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


exportObject

public void exportObject(Remote obj)
            throws RemoteException
Export a Remote Object

Parameters:


narrow

public Object narrow(Object obj,
                     Class newClass)
            throws ClassCastException
Narrow method

Parameters:

Returns:
an object of type newClass


toStub

public Remote toStub(Remote obj)
            throws NoSuchObjectException
To stub method

Parameters:

Returns:
the stub object


unexportObject

public void unexportObject(Remote obj)
            throws NoSuchObjectException
Method for unexport object

Parameters: