/** {@inheritDoc} */
@Override
protected String getDescription(final MBeanAttributeInfo info) {
String descr = info.getDescription();
Method m = getMethod(getMBeanInterface(),
"get" + info.getName().substring(0, 1).toUpperCase() + info.getName().substring(1));
if (m == null) {
m = getMethod(getMBeanInterface(),
"is" + info.getName().substring(0, 1).toUpperCase() + info.getName().substring(1));
}
if (m == null) {
m = getMethod(getMBeanInterface(),
"does" + info.getName().substring(0, 1).toUpperCase() + info.getName().substring(1));
}
if (m != null) {
Description d = m.getAnnotation(Description.class);
if (d != null) {
descr = d.value();
}
}
return descr;
}
AnnotatedStandardMBean.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:metrics-tomcat
作者:
评论列表
文章目录