Examples of MBeanCapability


Examples of org.jboss.mx.metadata.MBeanCapability

            valueMap.put(CLASSLOADER, clEntry.getResourceInstance());
         }
      }

      // Check the objects compliance
      MBeanCapability mbcap = MBeanCapability.of(object.getClass());

      try
      {

         if (valueMap != null)
            magicToken = (String) valueMap.get(JMI_DOMAIN);

         // TODO: allow custom factory for diff invoker types
     
         if (mbcap.getMBeanType() == MBeanCapability.STANDARD_MBEAN)
         {
            invoker = new XMBean(object, XMBeanConstants.STANDARD_MBEAN);
         }
         else if (object instanceof MBeanInvoker)
         {
View Full Code Here

Examples of org.jboss.mx.metadata.MBeanCapability

      if (object == null)
         throw new RuntimeOperationsException(
               new IllegalArgumentException("Attempting to register null object"));

      // get mbean type, dynamic or standard
      MBeanCapability mbcap = MBeanCapability.of(object.getClass());

      try
      {

         if (valueMap != null)
            magicToken = (String) valueMap.get(JMI_DOMAIN);

         // TODO: allow custom factory for diff invoker types
         int mbeanType = mbcap.getMBeanType();
         if (mbeanType == MBeanCapability.STANDARD_MBEAN)
         {
            invoker = new XMBean(object, XMBeanConstants.STANDARD_MBEAN);
         }
         else if (object instanceof MBeanInvoker)
View Full Code Here

Examples of org.jboss.mx.metadata.MBeanCapability

/*     */
/* 188 */     if (object == null) {
/* 189 */       throw new RuntimeOperationsException(new IllegalArgumentException("Attempting to register null object"));
/*     */     }
/*     */
/* 193 */     MBeanCapability mbcap = MBeanCapability.of(object.getClass());
/*     */     try
/*     */     {
/* 198 */       if (valueMap != null) {
/* 199 */         magicToken = (String)valueMap.get(JMI_DOMAIN);
/*     */       }
/*     */
/* 202 */       int mbeanType = mbcap.getMBeanType();
/* 203 */       if (mbeanType == 291)
/*     */       {
/* 205 */         invoker = new XMBean(object, "StandardMBean");
/*     */       }
/* 207 */       else if ((object instanceof MBeanInvoker))
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.