com.alibaba.dubbo.rpc.protocol.rmi
Class RmiRemoteInvocation

java.lang.Object
  extended by org.springframework.remoting.support.RemoteInvocation
      extended by com.alibaba.dubbo.rpc.protocol.rmi.RmiRemoteInvocation
All Implemented Interfaces:
Serializable

public class RmiRemoteInvocation
extends org.springframework.remoting.support.RemoteInvocation

Author:
杨浩
See Also:
Serialized Form

Constructor Summary
RmiRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
          构造将在消费端执行
 
Method Summary
 Object invoke(Object targetObject)
          服务端执行时,重新放入上下文(虽然这时上下文在ContextFilter执行时将被Invocation的attachments覆盖,我们在Invocation构造时还原attachments, see InvokerInvocationHandler)
 
Methods inherited from class org.springframework.remoting.support.RemoteInvocation
addAttribute, getArguments, getAttribute, getAttributes, getMethodName, getParameterTypes, setArguments, setAttributes, setMethodName, setParameterTypes, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RmiRemoteInvocation

public RmiRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
构造将在消费端执行

Method Detail

invoke

public Object invoke(Object targetObject)
              throws NoSuchMethodException,
                     IllegalAccessException,
                     InvocationTargetException
服务端执行时,重新放入上下文(虽然这时上下文在ContextFilter执行时将被Invocation的attachments覆盖,我们在Invocation构造时还原attachments, see InvokerInvocationHandler)

Overrides:
invoke in class org.springframework.remoting.support.RemoteInvocation
Throws:
NoSuchMethodException
IllegalAccessException
InvocationTargetException


Copyright © 2012–2017 Alibaba. All rights reserved.