Description classDescription = annotatedMBean.getAnnotation(Description.class);
description = getDescription(classDescription, "a MBean built by OpenEJB");
NotificationInfo notification = annotatedMBean.getAnnotation(NotificationInfo.class);
if (notification != null) {
MBeanNotificationInfo notificationInfo = getNotificationInfo(notification);
notificationInfos.add(notificationInfo);
}
NotificationInfos notifications = annotatedMBean.getAnnotation(NotificationInfos.class);
if (notifications != null && notifications.value() != null) {
for (NotificationInfo n : notifications.value()) {
MBeanNotificationInfo notificationInfo = getNotificationInfo(n);
notificationInfos.add(notificationInfo);
}
}