Package org.jboss.cache.jmx.annotations

Examples of org.jboss.cache.jmx.annotations.MBean


      return obj;
   }

   private void findDescription()
   {
      MBean mbean = getObject().getClass().getAnnotation(MBean.class);
      if (mbean != null && mbean.description() != null && mbean.description().trim().length() > 0)
      {
         description = mbean.description();
         if (log.isDebugEnabled())
         {
            log.debug("@MBean description set - " + mbean.description());
         }
         MBeanAttributeInfo info = new MBeanAttributeInfo(MBEAN_DESCRITION,
               "java.lang.String",
               "@MBean description",
               true,
View Full Code Here


      return !atts.isEmpty() || !ops.isEmpty();
   }

   public String getObjectName()
   {
      MBean mBean = obj.getClass().getAnnotation(MBean.class);
      if (mBean != null && mBean.objectName() != null && mBean.objectName().trim().length() > 0)
      {
         return mBean.objectName();
      }
      return obj.getClass().getSimpleName();
   }
View Full Code Here

      return obj;
   }

   private void findDescription()
   {
      MBean mbean = getObject().getClass().getAnnotation(MBean.class);
      if (mbean != null && mbean.description() != null && mbean.description().trim().length() > 0)
      {
         description = mbean.description();
         if (log.isTraceEnabled())
         {
            log.trace("@MBean description set - " + mbean.description());
         }
         MBeanAttributeInfo info = new MBeanAttributeInfo(MBEAN_DESCRITION,
               "java.lang.String",
               "@MBean description",
               true,
View Full Code Here

      return !atts.isEmpty() || !ops.isEmpty();
   }

   public String getObjectName()
   {
      MBean mBean = obj.getClass().getAnnotation(MBean.class);
      if (mBean != null && mBean.objectName() != null && mBean.objectName().trim().length() > 0)
      {
         return mBean.objectName();
      }
      return obj.getClass().getSimpleName();
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.jmx.annotations.MBean

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.