T - the generic typepublic class ProtobufRpcProxyBean<T> extends ProtobufRpcProxy<T> implements org.aopalliance.intercept.MethodInterceptor
ProtobufRpcProxy to process extra parameters transportation.| 构造器和说明 |
|---|
ProtobufRpcProxyBean(RpcClient rpcClient,
Class<T> interfaceClass)
Instantiates a new protobuf rpc proxy bean.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected RpcDataPackage |
buildRequestDataPackage(RpcMethodInfo rpcMethodInfo,
Object[] args) |
protected org.springframework.remoting.support.RemoteInvocation |
createRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
Creates the remote invocation.
|
org.springframework.remoting.support.RemoteInvocationFactory |
getRemoteInvocationFactory()
Gets the remote invocation factory.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
protected void |
setProxyBean(Object proxyBean)
Sets the proxy bean.
|
void |
setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
Sets the remote invocation factory.
|
close, getMethds, getProtobufRPCAnnotation, getServiceSignatures, invoke, isLookupStubOnStartup, proxy, setHost, setInterceptor, setLookupStubOnStartup, setPort, setServiceLocatorCallbackprotected void setProxyBean(Object proxyBean)
proxyBean - the new proxy beanpublic org.springframework.remoting.support.RemoteInvocationFactory getRemoteInvocationFactory()
public void setRemoteInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory remoteInvocationFactory)
remoteInvocationFactory - the new remote invocation factoryprotected RpcDataPackage buildRequestDataPackage(RpcMethodInfo rpcMethodInfo, Object[] args) throws IOException
buildRequestDataPackage 在类中 ProtobufRpcProxy<T>IOExceptionprotected org.springframework.remoting.support.RemoteInvocation createRemoteInvocation(org.aopalliance.intercept.MethodInvocation methodInvocation)
methodInvocation - the method invocationCopyright © 2016 Baidu, Inc.. All rights reserved.