// operations
Set gbeanOperations = gBeanInfo.getOperations();
MBeanOperationInfo[] operations = new MBeanOperationInfo[gbeanOperations.size()];
int o = 0;
for (Iterator iterator = gbeanOperations.iterator(); iterator.hasNext();) {
GOperationInfo gOperationInfo = (GOperationInfo) iterator.next();
//list of class names
List gparameters = gOperationInfo.getParameterList();
MBeanParameterInfo[] parameters = new MBeanParameterInfo[gparameters.size()];
int p = 0;
for (Iterator piterator = gparameters.iterator(); piterator.hasNext();) {
String type = (String) piterator.next();
parameters[p] = new MBeanParameterInfo("parameter" + p, type, "no description available");
p++;
}
operations[o] = new MBeanOperationInfo(gOperationInfo.getName(), "no description available", parameters, gOperationInfo.getReturnType() , MBeanOperationInfo.UNKNOWN);
o++;
}
MBeanNotificationInfo[] notifications = new MBeanNotificationInfo[1];
notifications[0] = new MBeanNotificationInfo(NotificationType.TYPES, "javax.management.Notification", "J2EE Notifications");