protected EurekaCommonConfig(
ResolverType resolverType,
String[] serverList,
Codec codec,
String appName,
String vipAddress,
LocalDataCenterInfo.DataCenterType dataCenterType,
Integer shutDownPort,
Integer webAdminPort
) {
this.resolverType = resolverType == null ? this.resolverType : resolverType.name();
this.serverList = serverList == null ? this.serverList : serverList;
this.codec = codec == null ? this.codec : codec.name();
this.appName = appName == null ? this.appName : appName;
this.vipAddress = vipAddress == null ? this.vipAddress : vipAddress;
this.dataCenterType = dataCenterType == null ? this.dataCenterType : dataCenterType.name();
this.shutDownPort = shutDownPort == null ? this.shutDownPort : shutDownPort;
this.webAdminPort = webAdminPort == null ? this.webAdminPort : webAdminPort;
}