Examples of AMXAttributeNameMapper


Examples of com.sun.enterprise.management.support.AMXAttributeNameMapper

    }

      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 );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.