
com.alibaba.dubbo.rpc.support.DelegateExporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dubbo2 Show documentation
Show all versions of dubbo2 Show documentation
The all in one project of dubbo2
The newest version!
/**
* Project: dubbo2-rpc
*
* File Created at 2012-2-24
* $Id$
*
* Copyright 1999-2100 Alibaba.com Corporation Limited.
* All rights reserved.
*
* This software is the confidential and proprietary information of
* Alibaba Company. ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Alibaba.com.
*/
package com.alibaba.dubbo.rpc.support;
import com.alibaba.dubbo.rpc.Exporter;
import com.alibaba.dubbo.rpc.Invoker;
/**
* DelegateExporter
* @author chao.liuc
*
*/
public class DelegateExporter implements Exporter {
private final Exporter exporter;
public DelegateExporter(Exporter exporter) {
if (exporter == null) {
throw new IllegalArgumentException("exporter can not be null");
} else {
this.exporter = exporter;
}
}
public Invoker getInvoker() {
return exporter.getInvoker();
}
public void unexport() {
exporter.unexport();
}
}