Package mx4j

Examples of mx4j.MBeanDescription


         MBeanInfo info = (MBeanInfo)mbeanInfoCache.get(metadata.getMBean().getClass());
         if (info != null) return info;
      }

      // 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;

      MBeanInfo info = new MBeanInfo(metadata.getMBean().getClass().getName(), description.getMBeanDescription(), attrs, ctors, opers, notifs);
      synchronized (mbeanInfoCache)
      {
         // Overwrite if already present, we've been unlucky
         mbeanInfoCache.put(metadata.getMBean().getClass(), info);
      }
View Full Code Here


            descrClass = loader.loadClass(descrClassName);

         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 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.