public static Invoker getInvoker(Object proxyObject, String proxyType) {
        try {
            ExtensionClass<Proxy> ext = ExtensionLoaderFactory.getExtensionLoader(Proxy.class)
                .getExtensionClass(proxyType);
            if (ext == null) {
                throw ExceptionUtils.buildRuntime("consumer.proxy", proxyType,
                    "Unsupported proxy of client!");
            }
            Proxy proxy = ext.getExtInstance();
            return proxy.getInvoker(proxyObject);
        } catch (SofaRpcRuntimeException e) {
            throw e;
        } catch (Throwable e) {
            throw new SofaRpcRuntimeException(e.getMessage(), e);
        }
    }
public static Invoker getInvoker ( Object proxyObject , String proxyType ) { try { ExtensionClass < Proxy > ext = ExtensionLoaderFactory . getExtensionLoader ( Proxy . class ) . getExtensionClass ( proxyType ) ; if ( ext == null ) { throw ExceptionUtils . buildRuntime ( "consumer.proxy" , proxyType , "Unsupported proxy of client!" ) ; } Proxy proxy = ext . getExtInstance ( ) ; return proxy . getInvoker ( proxyObject ) ; } catch ( SofaRpcRuntimeException e ) { throw e ; } catch ( Throwable e ) { throw new SofaRpcRuntimeException ( e . getMessage ( ) , e ) ; } }
解析出代理类的Invoker对象

@param proxyObject 代理类实现
@return Invoker对象