Examples of subtype()


Examples of org.jboss.managed.api.annotation.ManagementComponent.subtype()

      // 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

Examples of org.jboss.managed.api.annotation.ManagementComponent.subtype()

               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

Examples of org.jboss.managed.api.annotation.ManagementComponent.subtype()

/*     */
/* 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

Examples of org.jboss.managed.api.annotation.ManagementComponent.subtype()

            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

Examples of wyvern.tools.types.Type.subtype()

      if (!(target instanceof Assignable))
        throw new RuntimeException("Invalid target");
      ((Assignable)target).checkAssignment(this, env);
      Type tT = target.typecheck(env, Optional.empty());
      Type vT = value.typecheck(env, Optional.of(tT));
      if (!vT.subtype(tT))
        ToolError.reportError(ErrorMessage.ACTUAL_FORMAL_TYPE_MISMATCH, this);
    } else {
      nextExpr.typecheck(env, Optional.empty());
    }
    return Unit.getInstance();
View Full Code Here

Examples of wyvern.tools.types.Type.subtype()

  }

  public static boolean checkCast(Obj ref, Class jClass) {
    Type javaType = javaToWyvType(jClass);
    Type wyvernType = ref.getType();
    return wyvernType.subtype(javaType);
  }



  public static boolean checkTypeCast(Type type, Class arg) {
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.