You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ca...@apache.org on 2018/10/09 03:49:25 UTC

[incubator-dubbo] branch master updated: Remove unuse class. (#2608)

This is an automated email from the ASF dual-hosted git repository.

carryxyh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new d8ed9fe  Remove unuse class. (#2608)
d8ed9fe is described below

commit d8ed9fe97cd10f64b7e2ffbf8d36c7a198b6f23b
Author: 时无两丶 <44...@qq.com>
AuthorDate: Tue Oct 9 11:49:20 2018 +0800

    Remove unuse class. (#2608)
    
    remove unuse classes.
    readd it if it will be used again.
---
 .../apache/dubbo/rpc/support/DelegateExporter.java | 47 -----------------
 .../apache/dubbo/rpc/support/DelegateInvoker.java  | 61 ----------------------
 2 files changed, 108 deletions(-)

diff --git a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/DelegateExporter.java b/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/DelegateExporter.java
deleted file mode 100644
index 76d6dd4..0000000
--- a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/DelegateExporter.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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 org.apache.dubbo.rpc.support;
-
-import org.apache.dubbo.rpc.Exporter;
-import org.apache.dubbo.rpc.Invoker;
-
-/**
- * DelegateExporter
- */
-public class DelegateExporter<T> implements Exporter<T> {
-
-    private final Exporter<T> exporter;
-
-    public DelegateExporter(Exporter<T> exporter) {
-        if (exporter == null) {
-            throw new IllegalArgumentException("exporter can not be null");
-        } else {
-            this.exporter = exporter;
-        }
-
-    }
-
-    @Override
-    public Invoker<T> getInvoker() {
-        return exporter.getInvoker();
-    }
-
-    @Override
-    public void unexport() {
-        exporter.unexport();
-    }
-}
diff --git a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/DelegateInvoker.java b/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/DelegateInvoker.java
deleted file mode 100644
index eea4fcb..0000000
--- a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/DelegateInvoker.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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 org.apache.dubbo.rpc.support;
-
-import org.apache.dubbo.common.URL;
-import org.apache.dubbo.rpc.Invocation;
-import org.apache.dubbo.rpc.Invoker;
-import org.apache.dubbo.rpc.Result;
-import org.apache.dubbo.rpc.RpcException;
-
-/**
- * DelegateInvoker
- */
-public abstract class DelegateInvoker<T> implements Invoker<T> {
-
-    protected final Invoker<T> invoker;
-
-    public DelegateInvoker(Invoker<T> invoker) {
-        this.invoker = invoker;
-    }
-
-    @Override
-    public Class<T> getInterface() {
-        return invoker.getInterface();
-    }
-
-    @Override
-    public URL getUrl() {
-        return invoker.getUrl();
-    }
-
-    @Override
-    public boolean isAvailable() {
-        return invoker.isAvailable();
-    }
-
-    @Override
-    public Result invoke(Invocation invocation) throws RpcException {
-        return invoker.invoke(invocation);
-    }
-
-    @Override
-    public void destroy() {
-        invoker.destroy();
-    }
-
-}