| java.lang.Object org.ow2.easybeans.component.smartclient.spi.ProDelegate
ProDelegate | public class ProDelegate implements PortableRemoteObjectDelegate(Code) | | Implementation of the prodelegate class that will redirect to the carol class
by using the correct classloader mechanism.
author: Florent Benoit |
Constructor Summary | |
public | ProDelegate() Gets the Carol wrapping class. |
Method Summary | |
public void | connect(Remote target, Remote source) Makes a Remote object ready for remote communication. | public void | exportObject(Remote obj) Makes a server object ready to receive remote calls. | public Object | narrow(Object narrowFrom, Class narrowTo) Checks to ensure that an object of a remote or abstract interface type
can be cast to a desired type.
Parameters: narrowFrom - the object to check. Parameters: narrowTo - the desired type. | public static void | setClassLoader(ClassLoader cl) Sets the ClassLoader to use. | public Remote | toStub(Remote obj) Returns a stub for the given server object.
Parameters: obj - the server object for which a stub is required. | public void | unexportObject(Remote obj) Deregisters a server object from the runtime, allowing the object to
become available for garbage collection. |
ProDelegate | public ProDelegate()(Code) | | Gets the Carol wrapping class.
|
connect | public void connect(Remote target, Remote source) throws RemoteException(Code) | | Makes a Remote object ready for remote communication. This normally
happens implicitly when the object is sent or received as an argument on
a remote method call, but in some circumstances it is useful to perform
this action by making an explicit call.
Parameters: target - the object to connect. Parameters: source - a previously connected object. throws: RemoteException - if source is not connected or iftarget is already connected to a different ORBthan source . |
exportObject | public void exportObject(Remote obj) throws RemoteException(Code) | | Makes a server object ready to receive remote calls. Note that subclasses
of PortableRemoteObject do not need to call this method, as it is called
by the constructor.
Parameters: obj - the server object to export. exception: RemoteException - if export fails. |
narrow | public Object narrow(Object narrowFrom, Class narrowTo) throws ClassCastException(Code) | | Checks to ensure that an object of a remote or abstract interface type
can be cast to a desired type.
Parameters: narrowFrom - the object to check. Parameters: narrowTo - the desired type. an object which can be cast to the desired type. throws: ClassCastException - if narrowFrom cannot be cast to narrowTo. |
setClassLoader | public static void setClassLoader(ClassLoader cl)(Code) | | Sets the ClassLoader to use.
Parameters: cl - the ClassLoader to use. |
toStub | public Remote toStub(Remote obj) throws NoSuchObjectException(Code) | | Returns a stub for the given server object.
Parameters: obj - the server object for which a stub is required. Must either bea subclass of PortableRemoteObject or have been previously thetarget of a call to ProDelegate.exportObject. the most derived stub for the object. exception: NoSuchObjectException - if a stub cannot be located for thegiven server object. |
unexportObject | public void unexportObject(Remote obj) throws NoSuchObjectException(Code) | | Deregisters a server object from the runtime, allowing the object to
become available for garbage collection.
Parameters: obj - the object to unexport. exception: NoSuchObjectException - if the remote object is not currentlyexported. |
|
|