handle List type MBeanClassName

This commit is contained in:
Doug MacEachern 2008-10-09 06:06:58 +00:00
parent 7ff83f9ba9
commit c409cb469f
1 changed files with 7 additions and 1 deletions

View File

@ -78,7 +78,13 @@ public class ReflectedMBean extends AbstractMBean {
} }
private String getMBeanClassName() { private String getMBeanClassName() {
return "org.hyperic.sigar." + getType(); String type = getType();
final String list = "List";
if (type.endsWith(list)) {
type =
type.substring(0, type.length() - list.length());
}
return "org.hyperic.sigar." + type;
} }
private Class getMBeanClass() { private Class getMBeanClass() {