提交 d2a89fe2 编写于 作者: K kimi

添加一个方法供子类获取 ProxyFactory

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@1841 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 db0388a0
/*
* Copyright 1999-2012 Alibaba Group.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.dubbo.rpc.protocol;
import java.util.List;
......@@ -54,6 +55,10 @@ public abstract class AbstractProxyProtocol extends AbstractProtocol {
this.proxyFactory = proxyFactory;
}
public ProxyFactory getProxyFactory() {
return proxyFactory;
}
public <T> Exporter<T> export(final Invoker<T> invoker) throws RpcException {
final String uri = invoker.getUrl().getAbsolutePath();
final Runnable runnable = doExport(proxyFactory.getProxy(invoker), invoker.getInterface(), invoker.getUrl());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册