Package javax.management.modelmbean

Examples of javax.management.modelmbean.ModelMBeanConstructorInfo


            new ModelMBeanAttributeInfo[attrs.length];
        for (int i = 0; i < attrs.length; i++)
            attributes[i] = attrs[i].createAttributeInfo();
       
        ConstructorInfo consts[] = getConstructors();
        ModelMBeanConstructorInfo constructors[] =
            new ModelMBeanConstructorInfo[consts.length];
        for (int i = 0; i < consts.length; i++)
            constructors[i] = consts[i].createConstructorInfo();
        NotificationInfo notifs[] = getNotifications();
        ModelMBeanNotificationInfo notifications[] =
View Full Code Here


   
    public void addModelMBeanConstructor(Constructor<?> c,
                                          String description,
                                          Descriptor desc) {
        this.constructors.put(c,
                               new ModelMBeanConstructorInfo(description,
                                                             c,
                                                             desc));
    }
View Full Code Here

      MBeanConstructorInfo[] constructors = info.getConstructors();
      ModelMBeanConstructorInfo[] mmbConstructors = new ModelMBeanConstructorInfo[constructors.length];

      for (int i = 0; i < constructors.length; ++i)
      {
         mmbConstructors[i] = new ModelMBeanConstructorInfo(
            constructors[i].getName(),
            constructors[i].getDescription(),
            constructors[i].getSignature()
         );
      }
View Full Code Here

            buildParameterInfo(params);

         Descriptor descr = getDescriptor(constr, name, OPERATION_DESCRIPTOR);
         descr.setField(ROLE,  ROLE_CONSTRUCTOR);

         ModelMBeanConstructorInfo info =
            new ModelMBeanConstructorInfo(name, description, paramInfo, descr);

         infos.add(info);
      }

      return (ModelMBeanConstructorInfo[]) infos.toArray(
View Full Code Here

         if( descriptor.getFieldValue(ModelMBeanConstants.NAME) == null )
            descriptor.setField(ModelMBeanConstants.NAME, ModelMBeanConstructorInfo.class.getName());
         if( descriptor.getFieldValue(ModelMBeanConstants.DESCRIPTOR_TYPE) == null )
            descriptor.setField(ModelMBeanConstants.DESCRIPTOR_TYPE, ModelMBeanConstants.CONSTRUCTOR_DESCRIPTOR);
      }
      ModelMBeanConstructorInfo ctor = new ModelMBeanConstructorInfo(name,
         description, sig, descriptor);
      return ctor;
   }
View Full Code Here

        ParameterInfo params[] = getSignature();
        MBeanParameterInfo parameters[] =
            new MBeanParameterInfo[params.length];
        for (int i = 0; i < params.length; i++)
            parameters[i] = params[i].createParameterInfo();
        info = new ModelMBeanConstructorInfo
            (getName(), getDescription(), parameters);
        Descriptor descriptor = info.getDescriptor();
        descriptor.removeField("class");
        if (getDisplayName() != null)
            descriptor.setField("displayName", getDisplayName());
View Full Code Here

                                        true, false, false, attrd);
        Descriptor constrd = new DescriptorSupport(new String[] {
            "name=name", "descriptorType=operation", "role=constructor",
        });
        mmbci1 =
            new ModelMBeanConstructorInfo("name", "descr", null);
        mmbci2 =
            new ModelMBeanConstructorInfo("name", "descr", null, constrd);
        mmbci3 =
            new ModelMBeanConstructorInfo("name", "descr", params);
        mmbci4 =
            new ModelMBeanConstructorInfo("name", "descr", params, constrd);
        Descriptor operd = new DescriptorSupport(new String[] {
            "name=name", "descriptorType=operation",
        });
        mmboi1 =
            new ModelMBeanOperationInfo("name", "descr", null, "type", ACTION);
View Full Code Here

/* 270 */       MBeanParameterInfo[] paramInfo = buildParameterInfo(params);
/*     */
/* 273 */       Descriptor descr = getDescriptor(constr, name, "operation");
/* 274 */       descr.setField("role", "constructor");
/*     */
/* 276 */       ModelMBeanConstructorInfo info = new ModelMBeanConstructorInfo(name, description, paramInfo, descr);
/*     */
/* 279 */       infos.add(info);
/*     */     }
/*     */
/* 282 */     return (ModelMBeanConstructorInfo[])(ModelMBeanConstructorInfo[])infos.toArray(new ModelMBeanConstructorInfo[0]);
View Full Code Here

/* 209 */     MBeanConstructorInfo[] constructors = info.getConstructors();
/* 210 */     ModelMBeanConstructorInfo[] mmbConstructors = new ModelMBeanConstructorInfo[constructors.length];
/*     */
/* 212 */     for (int i = 0; i < constructors.length; i++)
/*     */     {
/* 214 */       mmbConstructors[i] = new ModelMBeanConstructorInfo(constructors[i].getName(), constructors[i].getDescription(), constructors[i].getSignature());
/*     */     }
/*     */
/* 227 */     MBeanNotificationInfo[] notifications = info.getNotifications();
/* 228 */     ModelMBeanNotificationInfo[] mmbNotifications = new ModelMBeanNotificationInfo[notifications.length];
/*     */
View Full Code Here

/* 69 */       if (this.descriptor.getFieldValue("name") == null)
/* 70 */         this.descriptor.setField("name", ModelMBeanConstructorInfo.class.getName());
/* 71 */       if (this.descriptor.getFieldValue("descriptorType") == null)
/* 72 */         this.descriptor.setField("descriptorType", "constructor");
/*    */     }
/* 74 */     ModelMBeanConstructorInfo ctor = new ModelMBeanConstructorInfo(this.name, this.description, sig, this.descriptor);
/*    */
/* 76 */     return ctor;
/*    */   }
View Full Code Here

TOP

Related Classes of javax.management.modelmbean.ModelMBeanConstructorInfo

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.