ManagedAttribute attr = field.getAnnotation(ManagedAttribute.class);
if (attr != null) {
String fieldName = renameToJavaCodingConvention(field.getName());
MBeanAttributeInfo info = new MBeanAttributeInfo(fieldName, field.getType()
.getCanonicalName(), attr.description(), true, !Modifier.isFinal(field
.getModifiers()) && attr.writable(), false);
atts.put(fieldName, new FieldAttributeEntry(info, field));
}
}
}