com.baidu.jprotobuf.pbrpc.spring
类 ProtobufRpcProxyBean<T>

java.lang.Object
  继承者 com.baidu.jprotobuf.pbrpc.client.ProtobufRpcProxy<T>
      继承者 com.baidu.jprotobuf.pbrpc.spring.ProtobufRpcProxyBean<T>
所有已实现的接口:
InvocationHandler, org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class ProtobufRpcProxyBean<T>
extends ProtobufRpcProxy<T>
implements org.aopalliance.intercept.MethodInterceptor

To enhance ProtobufRpcProxy to process extra parameters transportation.

从以下版本开始:
2.17
作者:
xiemalin

构造方法摘要
ProtobufRpcProxyBean(RpcClient rpcClient, Class<T> interfaceClass)
           
 
方法摘要
protected  RpcDataPackage buildRequestDataPackage(RpcMethodInfo rpcMethodInfo, Object[] args)
           
 org.springframework.remoting.support.RemoteInvocationFactory getRemoteInvocationFactory()
          get the remoteInvocationFactory
 Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
protected  void setProxyBean(Object proxyBean)
          set proxyBean value to proxyBean
 void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
          set remoteInvocationFactory value to remoteInvocationFactory
 
从类 com.baidu.jprotobuf.pbrpc.client.ProtobufRpcProxy 继承的方法
close, getServiceSignatures, invoke, isLookupStubOnStartup, proxy, setHost, setLookupStubOnStartup, setPort, setServiceLocatorCallback
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ProtobufRpcProxyBean

public ProtobufRpcProxyBean(RpcClient rpcClient,
                            Class<T> interfaceClass)
参数:
rpcClient -
interfaceClass -
方法详细信息

setProxyBean

protected void setProxyBean(Object proxyBean)
set proxyBean value to proxyBean

参数:
proxyBean - the proxyBean to set

getRemoteInvocationFactory

public org.springframework.remoting.support.RemoteInvocationFactory getRemoteInvocationFactory()
get the remoteInvocationFactory

返回:
the remoteInvocationFactory

setRemoteInvocationFactory

public void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
set remoteInvocationFactory value to remoteInvocationFactory

参数:
remoteInvocationFactory - the remoteInvocationFactory to set

buildRequestDataPackage

protected RpcDataPackage buildRequestDataPackage(RpcMethodInfo rpcMethodInfo,
                                                 Object[] args)
                                          throws IOException
覆盖:
类 ProtobufRpcProxy<T> 中的 buildRequestDataPackage
抛出:
IOException

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
              throws Throwable
指定者:
接口 org.aopalliance.intercept.MethodInterceptor 中的 invoke
抛出:
Throwable


Copyright © 2015 Baidu, Inc.. All Rights Reserved.