| java.lang.Object org.ow2.easybeans.proxy.client.AbsInvocationHandler org.ow2.easybeans.proxy.client.LocalCallInvocationHandler org.ow2.easybeans.proxy.client.EJBLocalHomeInvocationHandler
EJBLocalHomeInvocationHandler | public class EJBLocalHomeInvocationHandler extends LocalCallInvocationHandler (Code) | | Object acting as the proxy for EJB Local Home 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. |
EJBLocalHomeInvocationHandler | public EJBLocalHomeInvocationHandler(Integer embeddedID, String containerId, String factoryName, boolean useID)(Code) | | Build a new Invocation handler.
Parameters: embeddedID - the Embedded server ID. 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) |
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. |
|
|