org.objectweb.carol.rmi.multi

Class LmiPRODelegate

Implemented Interfaces:
PortableRemoteObjectDelegate

public class LmiPRODelegate
extends java.lang.Object
implements PortableRemoteObjectDelegate

Class LmiPRODelegate is a fake PortableRemoteObject for local methods call

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

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: