public class PRODelegate
extends java.lang.Object
implements javax.rmi.CORBA.PortableRemoteObjectDelegate
PRODelegate for use by
PortableRemoteObject.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EQUIV_PREFIX
Equiv prefix
|
| Constructor and Description |
|---|
PRODelegate()
Get the lower ORB delegate to export objects.
|
PRODelegate(javax.rmi.CORBA.PortableRemoteObjectDelegate rmi)
Get the Lower ORB delegate with a link to the underlaying
ORB
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect(java.rmi.Remote target,
java.rmi.Remote source)
Connection method
|
void |
exportObject(java.rmi.Remote obj)
Export a Remote Object
|
java.lang.Object |
narrow(java.lang.Object obj,
java.lang.Class newClass)
Narrow method
|
java.rmi.Remote |
toStub(java.rmi.Remote obj)
To stub method
|
void |
unexportObject(java.rmi.Remote obj)
Method for unexport object
|
public static final java.lang.String EQUIV_PREFIX
public PRODelegate()
public PRODelegate(javax.rmi.CORBA.PortableRemoteObjectDelegate rmi)
rmi - lower ORBpublic void exportObject(java.rmi.Remote obj)
throws java.rmi.RemoteException
exportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - Remote object to exportjava.rmi.RemoteException - exporting remote object problempublic void unexportObject(java.rmi.Remote obj)
throws java.rmi.NoSuchObjectException
unexportObject in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - Remote obj object to unexportjava.rmi.NoSuchObjectException - if the object is not currently exportedpublic void connect(java.rmi.Remote target,
java.rmi.Remote source)
throws java.rmi.RemoteException
connect in interface javax.rmi.CORBA.PortableRemoteObjectDelegatetarget - a remote object;source - another remote object;java.rmi.RemoteException - if the connection failpublic java.lang.Object narrow(java.lang.Object obj,
java.lang.Class newClass)
throws java.lang.ClassCastException
narrow in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - Remote obj the object to narrownewClass - Class newClass the expected type of the resultjava.lang.ClassCastException - if the obj class is not compatible with a
newClass castpublic java.rmi.Remote toStub(java.rmi.Remote obj)
throws java.rmi.NoSuchObjectException
toStub in interface javax.rmi.CORBA.PortableRemoteObjectDelegateobj - Remote object to unexportjava.rmi.NoSuchObjectException - if the object is not currently exported