private void scanMBeanAttributes ( MBeanConfig mBeanConfig , ObjectName mBeanName ) { MBeanInfo mBeanInfo ; try { mBeanInfo = mBeanServer . getMBeanInfo ( mBeanName ) ; MBeanAttributeInfo [ ] infos = mBeanInfo . getAttributes ( ) ; for ( int i = 0 ; i < infos . length ; i ++ ) { MBeanAttributeConfig cMBAttr = makeConfigMBeanAttribute ( mBeanName , infos [ i ] ) ; mBeanConfig . addChild ( cMBAttr ) ; } } catch ( IntrospectionException e ) { System . err . println ( e . getMessage ( ) ) ; } catch ( InstanceNotFoundException e ) { System . err . println ( e . getMessage ( ) ) ; } catch ( ReflectionException e ) { System . err . println ( e . getMessage ( ) ) ; } }
Stores all attributes of an MBean into its MBeanConfig object