|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The implementation delegate class for javax.rmi.PortableRemoteObject must implement the following interface for per-class delegation.
| Method Summary | |
void |
connect(Remote target,
Remote source)
This method makes the remote object target ready for remote communication using the same communications runtime as source. |
void |
exportObject(Remote obj)
Exports the provided Remote implementation. |
Object |
narrow(Object obj,
Class newClass)
This method takes an object reference or an object of an RMI/IDL abstract interface type and attemps to narrow it to conform to the given newClass RMI/IDL type. |
Remote |
toStub(Remote obj)
This method takes a server implementation object and returns a stub object that can be used to access that server object. |
void |
unexportObject(Remote obj)
This method is used to deregister a currently exported server object from the ORB runtimes, allowing the object to become available for garbage collection. |
| Method Detail |
public void exportObject(Remote obj)
throws RemoteException
obj - the object to export.RemoteException - if something goes wrong.
public Remote toStub(Remote obj)
throws NoSuchObjectException
exportObject.obj - an exported Remote implementation;NoSuchObjectException - if the object is not currently exported.
public void unexportObject(Remote obj)
throws NoSuchObjectException
obj - an exported Remote implementation;NoSuchObjectException - if the object is not currently exported.
public Object narrow(Object obj,
Class newClass)
throws ClassCastException
obj - the object to narrow;newClass - the expected type of the result;ClassCastException - if the operation fails.
public void connect(Remote target,
Remote source)
throws RemoteException
target - a remote object;source - another remote object;RemoteException - if something goes wrong.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||