Package org.jboss.managed.api.annotation

Examples of org.jboss.managed.api.annotation.ManagementComponent


            nameType = null;
         attachmentName = managementObject.attachmentName();
         if (attachmentName.length() == 0)
            attachmentName = classInfo.getName();
         // 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);
            moAnnotations.put(ManagementComponent.class.getName(), mc);
         }
         // ManagementObject level default factory classes
View Full Code Here


      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

         log.warn("Duplicate mo for key: "+key+", prevMO: "+prevMO);
      // Check for unresolved refs
      checkForReferences(key, mo);

      // Create ManagedComponents for
      ManagementComponent mc = (ManagementComponent) moAnns.get(ManagementComponent.class.getName());
      if (mc != null)
      {
         ComponentType type = new ComponentType(mc.type(), mc.subtype());
         ManagedComponentImpl comp = new ManagedComponentImpl(type, md, mo);
         md.addComponent(mo.getName(), comp);
      }

      // Scan for @ManagementObjectRef
View Full Code Here

               if(bmdMO.getAttachmentName().equals(KernelDeployment.class.getName()))
                  continue;

               ComponentType type = KnownComponentTypes.MCBean.Any.getType();
               Map<String, Annotation> moAnns = bmdMO.getAnnotations();
               ManagementComponent mc = (ManagementComponent) moAnns.get(ManagementComponent.class.getName());
               if(mc != null)
               {
                  type = new ComponentType(mc.type(), mc.subtype());
               }
               ManagedComponentImpl comp = new ManagedComponentImpl(type, md, bmdMO);
               md.addComponent(bmdMO.getName(), comp);
               log.debug("Created ManagedComponent("+comp.getName()+") of type: "
                     +type
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();
         moPropertyFactory = managementObject.propertyFactory();
View Full Code Here

/* 257 */       log.debug("Duplicate mo for key: " + key + ", prevMO: " + prevMO);
/*     */     }
/*     */
/* 260 */     checkForReferences(key, mo);
/*     */
/* 263 */     ManagementComponent mc = (ManagementComponent)moAnns.get(ManagementComponent.class.getName());
/* 264 */     if (mc != null)
/*     */     {
/* 266 */       log.debug("Processing ManagementComponent: " + mc);
/* 267 */       ComponentType type = new ComponentType(mc.type(), mc.subtype());
/* 268 */       ManagedComponentImpl comp = new ManagedComponentImpl(type, md, mo);
/* 269 */       md.addComponent(mo.getName(), comp);
/* 270 */       Set typeComps = (Set)this.compByCompType.get(type);
/* 271 */       if (typeComps == null)
/*     */       {
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();
/* 301 */       moPropertyFactory = managementObject.propertyFactory();
View Full Code Here

            nameType = null;
         attachmentName = managementObject.attachmentName();
         if (attachmentName.length() == 0)
            attachmentName = classInfo.getName();
         // 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);
            moAnnotations.put(ManagementComponent.class.getName(), mc);
         }
         // ManagementObject level default factory classes
View Full Code Here

TOP

Related Classes of org.jboss.managed.api.annotation.ManagementComponent

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.