Package org.jboss.managed.api.annotation

Examples of org.jboss.managed.api.annotation.ManagementObjectRef.type()


/*     */         {
/* 303 */           log.debug("Property(" + prop.getName() + ") references: " + ref);
/* 304 */           Object refName = getRefName(prop.getValue());
/* 305 */           if (refName == null)
/* 306 */             refName = ref.name();
/* 307 */           String targetKey = refName + "/" + ref.type();
/* 308 */           ManagedObject target = (ManagedObject)this.moRegistry.get(targetKey);
/* 309 */           if (target != null)
/*     */           {
/* 311 */             log.debug("Resolved property(" + prop.getName() + ") reference to: " + targetKey);
/* 312 */             prop.setTargetManagedObject(target);
View Full Code Here


/* 711 */       if (!(value instanceof Serializable)) {
/* 712 */         throw new IllegalStateException("Object is not serializable: " + value.getClass().getName());
/*     */       }
/* 714 */       ManagementObjectRef ref = (ManagementObjectRef)property.getAnnotations().get(ManagementObjectRef.class.getName());
/* 715 */       String moName = ref != null ? ref.name() : value.getClass().getName();
/* 716 */       String moNameType = ref != null ? ref.type() : "";
/* 717 */       ManagedObject mo = initManagedObject((Serializable)value, moName, moNameType);
/* 718 */       return new GenericValueSupport(MANAGED_OBJECT_META_TYPE, mo);
/*     */     }
/* 720 */     if (propertyType.isArray())
/*     */     {
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.