use of org.springframework.cloud.service.ServiceInfo.ServiceLabel in project spring-cloud-connectors by spring-cloud.
the class ServiceConnectorCreatorRegistry method getServiceLabel.
private static String getServiceLabel(ServiceInfo serviceInfo) {
Class<? extends ServiceInfo> serviceInfoClass = serviceInfo.getClass();
ServiceLabel labelAnnotation = serviceInfoClass.getAnnotation(ServiceInfo.ServiceLabel.class);
if (labelAnnotation == null) {
return null;
} else {
return labelAnnotation.value();
}
}
Aggregations