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
| 从类 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.