Package org.jboss.managed.api.annotation

Examples of org.jboss.managed.api.annotation.ManagementObject.componentType()


      ManagedObject managedObject = mof.initManagedObject(simple, metaData);
      assertEquals("testMetaDataRepositoryOverride", managedObject.getName());
      Map<String, Annotation> moAnnotations = managedObject.getAnnotations();
      assertEquals("MO annotations == 2;", 2, moAnnotations.size());
      ManagementObject moAnn = (ManagementObject) moAnnotations.get(ManagementObject.class.getName());
      ManagementComponent componentType = moAnn.componentType();
      assertEquals("componentType.type", "MCBean", componentType.type());
      assertEquals("componentType.subtype", "MetaDataTest", componentType.subtype());
      checkPropertyDefaults(managedObject, "bigDecimalValue", BigDecimal.class, bigDecimal);
      checkDefaultManagedProperties(managedObject, SimpleUnannotated.class);
   }
View Full Code Here


            nameType = null;
         attachmentName = managementObject.attachmentName();
         if (attachmentName.length() == 0)
            attachmentName = classInfo.getName();
         // Check for a component specification
         ManagementComponent mc = managementObject.componentType();
         if (mc.equals(AnnotationDefaults.COMP_TYPE) == false)
            moAnnotations.put(ManagementComponent.class.getName(), mc);
         // ManagementObject level default factory classes
         moFieldsFactory = managementObject.fieldsFactory();
         moConstraintsFactory = managementObject.constraintsFactory();
View Full Code Here

/* 290 */         nameType = null;
/* 291 */       attachmentName = managementObject.attachmentName();
/* 292 */       if (attachmentName.length() == 0) {
/* 293 */         attachmentName = classInfo.getName();
/*     */       }
/* 295 */       ManagementComponent mc = managementObject.componentType();
/* 296 */       if (!mc.equals(AnnotationDefaults.COMP_TYPE)) {
/* 297 */         moAnnotations.put(ManagementComponent.class.getName(), mc);
/*     */       }
/* 299 */       moFieldsFactory = managementObject.fieldsFactory();
/* 300 */       moConstraintsFactory = managementObject.constraintsFactory();
View Full Code Here

         // Check for a component specification
         ManagementComponent mc = null;
         if (metaData != null )
            mc = metaData.getAnnotation(ManagementComponent.class);
         if (mc == null)
            mc = managementObject.componentType();
         // Work around JBMDR-51 by checking type/subtype
         // if (mc.equals(AnnotationDefaults.COMP_TYPE) == false)
         if (mc.type().length() > 0 || mc.subtype().length() > 0)
         {
            log.debug("ManagedObject("+name+") is ManagedComponent type: "+mc);
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.