public class PortableRemoteObjectDelegateImpl extends Object implements PortableRemoteObjectDelegate
Constructor and Description |
---|
PortableRemoteObjectDelegateImpl() |
Modifier and Type | Method and Description |
---|---|
void |
connect(Remote target,
Remote source) |
void |
exportObject(Remote obj)
Export an RMI object as a CORBA object
|
static ORB |
getORB()
Return the ORB to be used for RMI communications.
|
Object |
narrow(Object obj,
Class newClass)
Narrow the remote object.
|
static void |
setORB(ORB orb)
Set the ORB to be used for RMI communications.
|
Remote |
toStub(Remote obj)
Return the Stub for a RMI object.
|
void |
unexportObject(Remote obj)
Deactivate the exported RMI object.
|
public static ORB getORB()
public static void setORB(ORB orb)
orb
- The ORB to usepublic void exportObject(Remote obj) throws RemoteException
exportObject
in interface PortableRemoteObjectDelegate
RemoteException
PortableRemoteObjectDelegate.exportObject(java.rmi.Remote)
public Remote toStub(Remote obj) throws NoSuchObjectException
toStub
in interface PortableRemoteObjectDelegate
obj
- The RMI objectNoSuchObjectException
PortableRemoteObjectDelegate.toStub(java.rmi.Remote)
public void unexportObject(Remote obj) throws NoSuchObjectException
unexportObject
in interface PortableRemoteObjectDelegate
obj
- The RMI objectNoSuchObjectException
PortableRemoteObjectDelegate.unexportObject(java.rmi.Remote)
public Object narrow(Object obj, Class newClass) throws ClassCastException
narrow
in interface PortableRemoteObjectDelegate
obj
- The remote objectnewClass
- The class to narrow toClassCastException
PortableRemoteObjectDelegate.narrow(java.lang.Object, java.lang.Class)
public void connect(Remote target, Remote source) throws RemoteException
connect
in interface PortableRemoteObjectDelegate
RemoteException
PortableRemoteObjectDelegate.connect(java.rmi.Remote, java.rmi.Remote)
Copyright © 2017 JacORB. All rights reserved.