org.jfox.ejb.invoker.jrmp
Class JRMPInvocationHandler

java.lang.Object
  extended byorg.jfox.ejb.InvocationHandlerSupport
      extended byorg.jfox.ejb.invoker.jrmp.JRMPInvocationHandler
All Implemented Interfaces:
ClientInvocationHandler, java.lang.reflect.InvocationHandler, java.io.Serializable

public class JRMPInvocationHandler
extends InvocationHandlerSupport

the InvocationHander forward client method to ContainerInvoker rmi invoker

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jfox.ejb.InvocationHandlerSupport
invoker, objectId
 
Constructor Summary
JRMPInvocationHandler(ObjectId objectHash, ContainerInvoker invoker)
           
 
Method Summary
protected  java.lang.Object invokeBean(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          执行 Bean 的方法
protected  java.lang.Object invokeHome(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          来自 EJBHome 的方法 注意:要注意拦截来自 EJBHome 的请求 比如:create,这时,服务端返回的并不是一个 EJBObject 对象, 而是这个 EJBObject 对象的 ObjectId,所以必须在这里手动生成代理对象
 
Methods inherited from class org.jfox.ejb.InvocationHandlerSupport
getInvoker, getMethodHash, getObjectId, invoke, readObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRMPInvocationHandler

public JRMPInvocationHandler(ObjectId objectHash,
                             ContainerInvoker invoker)
Method Detail

invokeHome

protected java.lang.Object invokeHome(java.lang.Object proxy,
                                      java.lang.reflect.Method method,
                                      java.lang.Object[] args)
                               throws java.lang.Exception
Description copied from class: InvocationHandlerSupport
来自 EJBHome 的方法 注意:要注意拦截来自 EJBHome 的请求 比如:create,这时,服务端返回的并不是一个 EJBObject 对象, 而是这个 EJBObject 对象的 ObjectId,所以必须在这里手动生成代理对象

Specified by:
invokeHome in class InvocationHandlerSupport
Throws:
java.lang.Exception

invokeBean

protected java.lang.Object invokeBean(java.lang.Object proxy,
                                      java.lang.reflect.Method method,
                                      java.lang.Object[] args)
                               throws java.lang.Exception
Description copied from class: InvocationHandlerSupport
执行 Bean 的方法

Specified by:
invokeBean in class InvocationHandlerSupport
Throws:
java.lang.Exception