| java.lang.Object org.ow2.easybeans.proxy.client.AbsInvocationHandler org.ow2.easybeans.proxy.client.ClientRPCInvocationHandler
All known Subclasses: org.ow2.easybeans.proxy.client.EJBHomeRPCInvocationHandler,
ClientRPCInvocationHandler | public class ClientRPCInvocationHandler extends AbsInvocationHandler (Code) | | This class sends an EJB request to the server and send back to the client the
response.
author: Florent Benoit |
Method Summary | |
protected Throwable | convertThrowable(Throwable throwable) Convert the received exception to the correct type for the remote case.
Parameters: throwable - the exception to analyze. | public Hashtable, ?> | getRMIEnv() Get the RMI environment used by the client when the lookup has been done. | public Object | invoke(Object proxy, Method method, Object[] args) Processes a method invocation on a proxy instance and returns the result.
This method will be invoked on an invocation handler when a method is
invoked on a proxy instance that it is associated with.
Parameters: proxy - the proxy instance that the method was invoked on Parameters: method - the Method instance corresponding to theinterface method invoked on the proxy instance. | public void | setRMIEnv(Hashtable, ?> rmiClientEnvironment) Set the RMI environment used by the client when the lookup has been done. |
ClientRPCInvocationHandler | public ClientRPCInvocationHandler(String containerId, String factoryName, boolean useID)(Code) | | Build a new Invocation handler.
Parameters: containerId - the id of the container that will be called on theremote side. Parameters: factoryName - the name of the remote factory. Parameters: useID - true if all instance build with this ref are unique(stateful), false if it references the same object (stateless) |
convertThrowable | protected Throwable convertThrowable(Throwable throwable)(Code) | | Convert the received exception to the correct type for the remote case.
Parameters: throwable - the exception to analyze. the converted exception or the original exception |
getRMIEnv | public Hashtable, ?> getRMIEnv()(Code) | | Get the RMI environment used by the client when the lookup has been done.
RMI env. |
invoke | public Object invoke(Object proxy, Method method, Object[] args) throws Exception(Code) | | Processes a method invocation on a proxy instance and returns the result.
This method will be invoked on an invocation handler when a method is
invoked on a proxy instance that it is associated with.
Parameters: proxy - the proxy instance that the method was invoked on Parameters: method - the Method instance corresponding to theinterface method invoked on the proxy instance. The declaringclass of the Method object will be the interfacethat the method was declared in, which may be a superinterface ofthe proxy interface that the proxy class inherits the methodthrough. Parameters: args - an array of objects containing the values of the argumentspassed in the method invocation on the proxy instance, ornull if interface method takes no arguments.Arguments of primitive types are wrapped in instances of theappropriate primitive wrapper class, such asjava.lang.Integer or java.lang.Boolean . the value to return from the method invocation on the proxyinstance. throws: Exception - the exception to throw from the method invocation onthe proxy instance. |
setRMIEnv | public void setRMIEnv(Hashtable, ?> rmiClientEnvironment)(Code) | | Set the RMI environment used by the client when the lookup has been done.
Parameters: rmiClientEnvironment - the given environment. |
|
|