com.power.common.builder.DubboInterfaceBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-util Show documentation
Show all versions of common-util Show documentation
ApplicationPower common-util
package com.power.common.builder;
import com.power.common.util.StringUtil;
import java.util.List;
/**
* @author sunyu
*/
public class DubboInterfaceBuilder {
/**
* 生成dubbo提供方服务注册列表
*
* @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