private List < String > resolveAttributes ( MBeanServerExecutor pServers , ObjectName pMBeanName , List < String > pAttributeNames ) throws IOException , ReflectionException , MBeanException , AttributeNotFoundException , InstanceNotFoundException { List < String > attributes = pAttributeNames ; if ( shouldAllAttributesBeFetched ( pAttributeNames ) ) { // All attributes are requested, we look them up now attributes = getAllAttributesNames ( pServers , pMBeanName ) ; } return attributes ; }
Resolve attributes and look up attribute names if all attributes need to be fetched .