public final class PortableRemoteObject
extends java.lang.Object
PortableRemoteObject but guarantee that
 the WebLogic versions will be called since users can replace
 the implementation of PortableRemoteObject
 themselves.| Modifier and Type | Method | Description | 
|---|---|---|
| static void | exportObject(java.rmi.Remote obj) | Makes a server object ready to receive remote calls. | 
| static java.lang.Object | narrow(java.lang.Object narrowFrom,
      java.lang.Class narrowTo) | Checks to ensure that an object of a remote or abstract interface type
 can be cast to a desired type. | 
| static java.rmi.Remote | toStub(java.rmi.Remote obj) | Returns a stub for the given server object. | 
| static void | unexportObject(java.rmi.Remote obj) | Unregisters a server object from the runtime, allowing the object to become
 available for garbage collection. | 
public static void exportObject(java.rmi.Remote obj)
                         throws java.rmi.RemoteException
obj - the server object to export.java.rmi.RemoteException - if export fails.public static java.rmi.Remote toStub(java.rmi.Remote obj)
                              throws java.rmi.NoSuchObjectException
obj - the server object for which a stub is required. Must either be a subclass
            of PortableRemoteObject or have been previously the target of a call to
            exportObject(java.rmi.Remote).java.rmi.NoSuchObjectException - if a stub cannot be located for the given server object.public static void unexportObject(java.rmi.Remote obj)
                           throws java.rmi.NoSuchObjectException
obj - the object to unexport.java.rmi.NoSuchObjectException - if the remote object is not
                               currently exported.public static java.lang.Object narrow(java.lang.Object narrowFrom,
                                      java.lang.Class narrowTo)
                               throws java.lang.ClassCastException
narrowFrom - the object to check.narrowTo - the desired type.java.lang.ClassCastException - if narrowFrom cannot be cast to narrowTo.