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

com.power.common.builder.DubboInterfaceBuilder Maven / Gradle / Ivy

There is a newer version: 2.2.3
Show newest version
package com.power.common.builder;

import com.power.common.util.StringUtil;

import java.util.List;

/**
 * @author sunyu
 */
public class DubboInterfaceBuilder {

    /**
     * Generate dubbo provider service registration list
     *
     * @param classes list of class
     * @return dubbo provider interfaces
     */
    public static String generateDubboProviderInterface(List classes) {
        StringBuilder builder = new StringBuilder();
        for (Class clazz : classes) {
            builder.append("\n");
        }
        return builder.toString();
    }

    /**
     * 生成dubbo消费方服务注册列表
     *
     * @param classes list of class
     * @return dubbo consumer references
     */
    public static String generateDubboConsumerInterface(List classes) {
        StringBuilder builder = new StringBuilder();
        for (Class clazz : classes) {
            builder.append("\n");
        }
        return builder.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy