Package org.jboss.managed.api.annotation

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


               }
               SimpleValue svalue = (SimpleValue) value;
               String name = "" + svalue.getValue();
               managedObject.setName(name);
            }
            ManagementRuntimeRef runtimeRef = (ManagementRuntimeRef) annotations.get(ManagementRuntimeRef.class.getName());
            if (runtimeRef != null)
            {
               componentName = icf.getComponentName(beanInfo, property, object, value);
               // let's try this as well
               if (componentName == null && icf != this)
View Full Code Here


      if (beanInfo != null && property != null && value != null)
      {
         String name = getPropertyName(property);
         PropertyInfo propertyInfo = beanInfo.getProperty(name);

         ManagementRuntimeRef componentRef = propertyInfo.getUnderlyingAnnotation(ManagementRuntimeRef.class);
         if (componentRef != null)
         {
            Object original = metaValueFactory.unwrap(value, propertyInfo.getType());
            try
            {
               Class<? extends RuntimeComponentNameTransformer> tClass = componentRef.transformer();
               RuntimeComponentNameTransformer transformer;
               if (tClass != ManagementRuntimeRef.DEFAULT_NAME_TRANSFORMER.class)
                  transformer = getComponentNameTransformer(configuration.getTypeInfo(tClass));
               else
                  transformer = getComponentNameTransformer(propertyInfo.getType());
View Full Code Here

/*     */           continue;
/*     */         }
/* 326 */         ManagementProperty managementProperty = (ManagementProperty)propertyInfo.getUnderlyingAnnotation(ManagementProperty.class);
/* 327 */         ManagementObjectID id = (ManagementObjectID)propertyInfo.getUnderlyingAnnotation(ManagementObjectID.class);
/* 328 */         ManagementObjectRef ref = (ManagementObjectRef)propertyInfo.getUnderlyingAnnotation(ManagementObjectRef.class);
/* 329 */         ManagementRuntimeRef runtimeRef = (ManagementRuntimeRef)propertyInfo.getUnderlyingAnnotation(ManagementRuntimeRef.class);
/* 330 */         HashMap propAnnotations = new HashMap();
/* 331 */         if (managementProperty != null)
/* 332 */           propAnnotations.put(ManagementProperty.class.getName(), managementProperty);
/* 333 */         if (id != null)
/*     */         {
View Full Code Here

/*     */           }
/* 608 */           SimpleValue svalue = (SimpleValue)value;
/* 609 */           String name = "" + svalue.getValue();
/* 610 */           managedObject.setName(name);
/*     */         }
/* 612 */         ManagementRuntimeRef runtimeRef = (ManagementRuntimeRef)annotations.get(ManagementRuntimeRef.class.getName());
/* 613 */         if (runtimeRef != null)
/*     */         {
/* 615 */           componentName = icf.getComponentName(beanInfo, property, object, value);
/*     */
/* 617 */           if ((componentName == null) && (icf != this))
View Full Code Here

/* 645 */     if ((beanInfo != null) && (property != null) && (value != null))
/*     */     {
/* 647 */       String name = getPropertyName(property);
/* 648 */       PropertyInfo propertyInfo = beanInfo.getProperty(name);
/*     */
/* 650 */       ManagementRuntimeRef componentRef = (ManagementRuntimeRef)propertyInfo.getUnderlyingAnnotation(ManagementRuntimeRef.class);
/* 651 */       if (componentRef != null)
/*     */       {
/* 653 */         Object original = this.metaValueFactory.unwrap(value, propertyInfo.getType());
/*     */         try
/*     */         {
/* 656 */           Class tClass = componentRef.transformer();
/*     */           RuntimeComponentNameTransformer transformer;
/*     */           RuntimeComponentNameTransformer transformer;
/* 658 */           if (tClass != ManagementRuntimeRef.DEFAULT_NAME_TRANSFORMER.class)
/* 659 */             transformer = getComponentNameTransformer(configuration.getTypeInfo(tClass));
/*     */           else {
View Full Code Here

               continue;

            ManagementProperty managementProperty = getAnnotation(ManagementProperty.class, propertyInfo, metaData);
            ManagementObjectID id = getAnnotation(ManagementObjectID.class, propertyInfo, metaData);
            ManagementObjectRef ref = getAnnotation(ManagementObjectRef.class, propertyInfo, metaData);
            ManagementRuntimeRef runtimeRef = getAnnotation(ManagementRuntimeRef.class, propertyInfo, metaData);
            RunStateProperty rsp = getAnnotation(RunStateProperty.class, propertyInfo, metaData);
            Masked masked = getAnnotation(Masked.class, propertyInfo, metaData);
            DefaultValueBuilderFactory defaultsFactory = getAnnotation(DefaultValueBuilderFactory.class, propertyInfo, metaData);
            HashMap<String, Annotation> propAnnotations = new HashMap<String, Annotation>();
            if (managementProperty != null)
View Full Code Here

TOP

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

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.