Package org.apache.felix.mosgi.jmx.agent.mx4j

Examples of org.apache.felix.mosgi.jmx.agent.mx4j.MBeanDescription


   }

   private MBeanInfo createStandardMBeanInfo(MBeanMetaData metadata)
   {
      // This is a non-standard extension: description for standard MBeans
      MBeanDescription description = createMBeanDescription(metadata);

      MBeanConstructorInfo[] ctors = createMBeanConstructorInfo(metadata, description);
      if (ctors == null) return null;
      MBeanAttributeInfo[] attrs = createMBeanAttributeInfo(metadata, description);
      if (attrs == null) return null;
      MBeanOperationInfo[] opers = createMBeanOperationInfo(metadata, description);
      if (opers == null) return null;
      MBeanNotificationInfo[] notifs = createMBeanNotificationInfo(metadata);
      if (notifs == null) return null;

      return new MBeanInfo(metadata.mbean.getClass().getName(), description.getMBeanDescription(), attrs, ctors, opers, notifs);
   }
View Full Code Here


            }

            Object descrInstance = descrClass.newInstance();
            if (descrInstance instanceof MBeanDescription)
            {
               MBeanDescription description = (MBeanDescription)descrInstance;
               if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Found provided standard MBean description: " + description);
               return description;
            }
         }
         catch (ClassNotFoundException ignored)
         {
         }
         catch (InstantiationException ignored)
         {
         }
         catch (IllegalAccessException ignored)
         {
         }
      }

      MBeanDescription description = DEFAULT_DESCRIPTION;
      if (logger.isEnabledFor(Logger.TRACE)) logger.trace("Cannot find standard MBean description, using default: " + description);
      return description;
   }
View Full Code Here

TOP

Related Classes of org.apache.felix.mosgi.jmx.agent.mx4j.MBeanDescription

Copyright © 2018 www.massapicom. 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.