| java.lang.Object org.ow2.easybeans.proxy.client.AbsInvocationHandler org.ow2.easybeans.proxy.client.ClientRPCInvocationHandler org.ow2.easybeans.proxy.client.EJBHomeRPCInvocationHandler
EJBHomeRPCInvocationHandler | public class EJBHomeRPCInvocationHandler extends ClientRPCInvocationHandler (Code) | | This class sends an EJB request to the server and send back to the client the
response. It handles the EJBHome calls.
author: Florent Benoit |
Method Summary | |
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. |
EJBHomeRPCInvocationHandler | public EJBHomeRPCInvocationHandler(String containerId, String factoryName, boolean useID, String remoteInterface)(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) Parameters: remoteInterface - the name of the remote interface used by the home interface. |
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. |
|
|