}
protected final AMXAttributeNameMapper
createAttributeNameMapper()
{
final AMXAttributeNameMapper mapper = new AMXAttributeNameMapperImpl();
//mapper.setDebugOutput( getDebugOutput() );
final Set<String> myAttributeNames = getMyAttributeMappingCandidates();
final String[] delegateAttributeNames =
JMXUtil.getAttributeNames( mSuppliedDelegate.getMBeanInfo().getAttributes() );
mapper.matchNames(
GSetUtil.toStringArray( myAttributeNames ), delegateAttributeNames );
addCustomMappings( mapper );
if ( getAMXDebug() || false )
{
// this is stuff helpful when implementing; leave here
// so it can be enabled
final Set<String> missingAttributeNames =
GSetUtil.removeSet( myAttributeNames, mapper.getDerivedNames() );
if ( missingAttributeNames.size() != 0 )
{
//handleMissingAttributeMappings( missingAttributeNames );
}
final Set<String> missingOriginals = mapper.getUnmappedOriginals();
missingOriginals.remove( "name" ); // special case, getName() always overides
missingOriginals.remove( "Name" );
if ( missingOriginals.size() != 0 )
{
handleMissingOriginals( missingOriginals );