javax.rmi.CORBA
public interface PortableRemoteObjectDelegate
Method Summary | |
---|---|
void | connect(Remote target, Remote source)
Makes the remote object |
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. |
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 {@link Stub#connect} if it is a stub or by associating its tie with an ORB if it is an implementation object.
Parameters: target the target object that may be either an RMI/IDL stub or an exported RMI/IDL implementation object source the source object may also be either an RMI/IDL stub or an exported RMI/IDL implementation object.
Throws: RemoteException if the target is already connected to another ORB.
Parameters: object the object to export.
Throws: RemoteException
Parameters: narrowFrom an object to narrow. narrowTo a type to that the object must be narrowed.
Returns: On success, an object of type narrowTo or null, if narrowFrom = null.
Throws: ClassCastException if no narrowing is possible.
Parameters: target a server side object.
Returns: a stub object that can be used to access that server object.
Throws: NoSuchObjectException if a stub cannot be located for the given target.
Parameters: object the object to unexport.
Throws: NoSuchObjectException if the passed object is not currently exported.