private static MBeanInfo createMBeanInfo ( AttributeNodeForPojo rootNode , Class < ? > monitorableClass ) { String monitorableName = "" ; String monitorableDescription = "" ; MBeanAttributeInfo [ ] attributes = rootNode != null ? fetchAttributesInfo ( rootNode ) : new MBeanAttributeInfo [ 0 ] ; MBeanOperationInfo [ ] operations = fetchOperationsInfo ( monitorableClass ) ; return new MBeanInfo ( monitorableName , monitorableDescription , attributes , null , // constructors operations , null ) ; //notifications }
region creating jmx metadata - MBeanInfo