javax.rmi.CORBA
public interface PortableRemoteObjectDelegate
PortableRemoteObject
.
The default delegate can be altered by setting the system property
"javax.rmi.CORBA.PortableRemoteObjectClass" to the name of the alternative
class that must implement PortableRemoteObjectDelegate
.Modifier and Type | Method and Description |
---|---|
void |
connect(Remote target,
Remote source)
Makes the remote object
target ready for remote
communication using the same communications runtime as for the passed
source parameter. |
void |
exportObject(Remote obj)
Register the passed object with the ORB runtimes, making it remotely
accessible.
|
Object |
narrow(Object narrowFrom,
Class narrowTo)
Narrows the passed object to conform to the given interface or IDL type.
|
Remote |
toStub(Remote obj)
Takes a server implementation object and returns a stub object that can be
used to access that server object (target).
|
void |
unexportObject(Remote obj)
Deregister a currently exported server object from the ORB runtimes.
|
void connect(Remote target, Remote source) throws RemoteException
Makes the remote object target
ready for remote
communication using the same communications runtime as for the passed
source
parameter. Connection normally happens implicitly
when the object is sent or received as an argument on a remote method call.
The target object is connected to the same ORB as source by calling the
Stub.connect(org.omg.CORBA.ORB)
if it is a stub or by associating its tie with an ORB
if it is an implementation object.
target
- the target object that may be either an RMI/IDL stub or an
exported RMI/IDL implementation objectsource
- the source object may also be either an RMI/IDL stub or an
exported RMI/IDL implementation object.RemoteException
- if the target is already connected to another ORB.void exportObject(Remote obj) throws RemoteException
Util.unexportObject(java.rmi.Remote)
obj
- the object to export.RemoteException
Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException
narrowFrom
- an object to narrow.narrowTo
- a type to that the object must be narrowed.ClassCastException
- if no narrowing is possible.Remote toStub(Remote obj) throws NoSuchObjectException
obj
- a server side object.NoSuchObjectException
- if a stub cannot be located for the given
target.void unexportObject(Remote obj) throws NoSuchObjectException
Util.unexportObject(java.rmi.Remote)
obj
- the object to unexport.NoSuchObjectException
- if the passed object is not currently
exported.