提交 d5e9a46c 编写于 作者: W william.liangf

迁移rmi协议到开源模块

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@79 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 4d0e0977
/*
* Copyright 1999-2101 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.rmi;
import java.lang.reflect.InvocationTargetException;
import java.rmi.RemoteException;
import com.alibaba.dubbo.rpc.Invocation;
import com.alibaba.dubbo.rpc.RpcInvocation;
import com.alibaba.dubbo.rpc.RpcResult;
/**
* AbstratcRmiInvocationHandler
*
* @author william.liangf
*/
public abstract class AbstractRmiInvocationHandler implements RmiInvocationHandler {
public RpcResult invoke(RpcInvocation invocation) throws RemoteException, NoSuchMethodException,
IllegalAccessException, InvocationTargetException {
return (RpcResult) invoke((Invocation) invocation);
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ import com.alibaba.dubbo.rpc.RpcResult;
* @serial
* @author qian.lei
*/
class RemoteObject2RmiInvocationHandler extends AbstractRmiInvocationHandler
class RemoteObject2RmiInvocationHandler implements RmiInvocationHandler
{
private Remote mRemote;
......
......@@ -130,7 +130,7 @@ public class RmiProtocol extends AbstractProtocol {
}
};
} else {
exportedObj = new AbstractRmiInvocationHandler() {
exportedObj = new RmiInvocationHandler() {
public Result invoke(Invocation inv) throws RemoteException, NoSuchMethodException,
IllegalAccessException, InvocationTargetException {
......
......@@ -29,7 +29,7 @@ import com.alibaba.dubbo.rpc.RpcResult;
* @serial
* @author ding.lid
*/
class SpringHandler2RmiInvocationHandler extends AbstractRmiInvocationHandler {
class SpringHandler2RmiInvocationHandler implements RmiInvocationHandler {
private org.springframework.remoting.rmi.RmiInvocationHandler springHandler;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册