com.alibaba.dubbo.rpc.proxy.wrapper
Class StubProxyFactoryWrapper

java.lang.Object
  extended by com.alibaba.dubbo.rpc.proxy.wrapper.StubProxyFactoryWrapper
All Implemented Interfaces:
ProxyFactory

public class StubProxyFactoryWrapper
extends Object
implements ProxyFactory

StubProxyFactoryWrapper

Author:
william.liangf

Constructor Summary
StubProxyFactoryWrapper(ProxyFactory proxyFactory)
           
 
Method Summary
<T> Invoker<T>
getInvoker(T proxy, Class<T> type, URL url)
          create invoker.
<T> T
getProxy(Invoker<T> invoker)
          create proxy.
 void setProtocol(Protocol protocol)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubProxyFactoryWrapper

public StubProxyFactoryWrapper(ProxyFactory proxyFactory)
Method Detail

setProtocol

public void setProtocol(Protocol protocol)

getProxy

public <T> T getProxy(Invoker<T> invoker)
           throws RpcException
Description copied from interface: ProxyFactory
create proxy.

Specified by:
getProxy in interface ProxyFactory
Returns:
proxy
Throws:
RpcException

getInvoker

public <T> Invoker<T> getInvoker(T proxy,
                                 Class<T> type,
                                 URL url)
                      throws RpcException
Description copied from interface: ProxyFactory
create invoker.

Specified by:
getInvoker in interface ProxyFactory
Returns:
invoker
Throws:
RpcException


Copyright © 2012–2017 Alibaba. All rights reserved.