return null;
}
}
public CircuitBreakerAttribute parseCircuitBreakerAnnotation(CircuitBreaker ann, AnnotatedElement ae) {
DefaultCircuitBreakerAttribute attr = new DefaultCircuitBreakerAttribute();
if (StringUtils.isEmpty(ann.name()) && ae instanceof Method) {
String name = ((Method) ae).getName();
attr.setName(name);
} else {
attr.setName(ann.name());
}
if (ann.properties().length > 0) {
Map<String, String> properties = new HashMap<String, String>();
for (CircuitProperty prop : ann.properties()) {
properties.put(prop.key(), prop.value());
}
attr.setProperties(properties);
}
return attr;
}