INNER CODE UNIT · Java
BaseServiceMetadata
apache/dubbo · dubbo-common/src/main/java/org/apache/dubbo/common/BaseServiceMetadata.java:27
public class BaseServiceMetadata {
public static final char COLON_SEPARATOR = ':';
protected String serviceKey;
protected String serviceInterfaceName;
protected String version;
protected volatile String group;
private ServiceModel serviceModel;
public static String buildServiceKey(String path, String group, String version) {
int length = path == null ? 0 : path.length();
length += group == null ? 0 : group.length();
length += version == null ? 0 : version.length();
length += 2;
StringBuilder buf = new StringBuilder(length);
if (StringUtils.isNotEmpty(group)) {
buf.append(group).append('/');
}