com.alibaba.dubbo.rpc
Interface ProxyFactory

All Known Implementing Classes:
AbstractProxyFactory, JavassistProxyFactory, JdkProxyFactory, StubProxyFactoryWrapper

@SPI(value="javassist")
public interface ProxyFactory

ProxyFactory. (API/SPI, Singleton, ThreadSafe)

Author:
william.liangf

Method Summary
<T> Invoker<T>
getInvoker(T proxy, Class<T> type, URL url)
          create invoker.
<T> T
getProxy(Invoker<T> invoker)
          create proxy.
 

Method Detail

getProxy

@Adaptive(value="proxy")
<T> T getProxy(Invoker<T> invoker)
           throws RpcException
create proxy.

Parameters:
invoker -
Returns:
proxy
Throws:
RpcException

getInvoker

@Adaptive(value="proxy")
<T> Invoker<T> getInvoker(T proxy,
                                        Class<T> type,
                                        URL url)
                      throws RpcException
create invoker.

Type Parameters:
T -
Parameters:
proxy -
type -
url -
Returns:
invoker
Throws:
RpcException


Copyright © 2012–2017 Alibaba. All rights reserved.