All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.dubbo.rpc.support.DelegateExporter Maven / Gradle / Ivy

/**
 * Project: dubbo-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();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy