private void initAttributes() {
attributes = new DefaultsMap();
Map options = new TreeMap(mysqldFactory.newMysqldResource(null, null,
null).getServerOptions());
List attInfs = new ArrayList();
makeAttribute(attInfs, AUTOSTART_ATTR, Boolean.FALSE.toString(), true);
for (Iterator iter = options.entrySet().iterator(); iter.hasNext();) {
Map.Entry entry = (Map.Entry) iter.next();
String attName = (String) entry.getKey();
String attValue = (String) entry.getValue();
makeAttribute(attInfs, attName, attValue, true);
}
makeAttribute(attInfs, versionAttributeName(), VERSION, false);
this.attrInfos = (MBeanAttributeInfo[]) attInfs
.toArray(new MBeanAttributeInfo[attInfs.size()]);
}