public Map<String, MBeanAttributeInfo> getAttributeMetadata() {

        MBeanAttributeInfo[] attributeList = mBeanInfo.getAttributes();

        Map<String, MBeanAttributeInfo> attributeMap = new TreeMap<String, MBeanAttributeInfo>();
        for (MBeanAttributeInfo attribute: attributeList) {
            attributeMap.put(attribute.getName(), attribute);
        }
        return attributeMap;
    }
public Map < String , MBeanAttributeInfo > getAttributeMetadata ( ) { MBeanAttributeInfo [ ] attributeList = mBeanInfo . getAttributes ( ) ; Map < String , MBeanAttributeInfo > attributeMap = new TreeMap < String , MBeanAttributeInfo > ( ) ; for ( MBeanAttributeInfo attribute : attributeList ) { attributeMap . put ( attribute . getName ( ) , attribute ) ; } return attributeMap ; }
Get the Attribute metadata for an MBean by name.
@return the {@link Map} of {@link String} attribute names to {@link MBeanAttributeInfo} values.