Package org.jboss.beans.metadata.plugins

Examples of org.jboss.beans.metadata.plugins.AbstractListMetaData


/*     */     }
/*     */   }
/*     */
/*     */   private void addMixins(AbstractBeanMetaData introduction, List<BeanMetaData> result)
/*     */   {
/* 149 */     AbstractListMetaData lmd = new AbstractListMetaData();
/* 150 */     lmd.setType(ArrayList.class.getName());
/* 151 */     BeanMetaDataUtil.setSimpleProperty(introduction, "mixins", lmd);
/* 152 */     int i = 0;
/* 153 */     for (AbstractBeanMetaData mixin : this.mixins)
/*     */     {
/* 155 */       String name = introduction.getName() + "$" + i++;
/* 156 */       mixin.setName(name);
/* 157 */       result.add(mixin);
/*     */
/* 159 */       lmd.add(new AbstractInjectionValueMetaData(name));
/*     */     }
/*     */   }
View Full Code Here


/* 58 */     cflowStack.setName(getName());
/* 59 */     BeanMetaDataUtil.setSimpleProperty(cflowStack, "name", getName());
/* 60 */     this.util.setAspectManagerProperty(cflowStack, "manager");
/* 61 */     result.add(cflowStack);
/*    */
/* 63 */     AbstractListMetaData lmd = new AbstractListMetaData();
/* 64 */     lmd.setType(ArrayList.class.getName());
/* 65 */     BeanMetaDataUtil.setSimpleProperty(cflowStack, "entries", lmd);
/* 66 */     int i = 0;
/* 67 */     for (AbstractBeanMetaData entry : this.entries)
/*    */     {
/* 69 */       String entryName = cflowStack.getName() + "$" + i++;
/* 70 */       entry.setName(entryName);
/* 71 */       lmd.add(new AbstractInjectionValueMetaData(entryName));
/* 72 */       result.add(entry);
/*    */     }
/*    */
/* 75 */     return result;
/*    */   }
View Full Code Here

/* 63 */     precedence.setName(name);
/* 64 */     BeanMetaDataUtil.setSimpleProperty(precedence, "name", getName());
/* 65 */     this.util.setAspectManagerProperty(precedence, "manager");
/* 66 */     result.add(precedence);
/*    */
/* 68 */     AbstractListMetaData lmd = new AbstractListMetaData();
/* 69 */     lmd.setType(ArrayList.class.getName());
/* 70 */     BeanMetaDataUtil.setSimpleProperty(precedence, "entries", lmd);
/* 71 */     int i = 0;
/* 72 */     for (BaseInterceptorData entry : this.entries)
/*    */     {
/* 74 */       String entryName = name + "$" + i++;
/* 75 */       AbstractBeanMetaData entryBean = new AbstractBeanMetaData(PrecedenceDefEntry.class.getName());
/* 76 */       entryBean.setName(entryName);
/* 77 */       BeanMetaDataUtil.setSimpleProperty(entryBean, "aspectName", entry.getRefName());
/* 78 */       if ((entry instanceof AdviceData))
/*    */       {
/* 80 */         BeanMetaDataUtil.setSimpleProperty(entryBean, "aspectMethod", ((AdviceData)entry).getAdviceMethod());
/*    */       }
/* 82 */       lmd.add(new AbstractInjectionValueMetaData(entryName));
/* 83 */       result.add(entryBean);
/*    */     }
/*    */
/* 86 */     return result;
/*    */   }
View Full Code Here

/*  57 */     BeanMetaDataUtil.setSimpleProperty(stack, "name", this.name);
/*  58 */     stack.setBean(Stack.class.getName());
/*     */
/*  60 */     this.util.setAspectManagerProperty(stack, "manager");
/*  61 */     result.add(stack);
/*     */     AbstractListMetaData almd;
/*     */     int i;
/*  63 */     if (this.interceptors.size() > 0)
/*     */     {
/*  65 */       almd = new AbstractListMetaData();
/*  66 */       i = 0;
/*  67 */       for (BaseInterceptorData interceptor : this.interceptors)
/*     */       {
/*  69 */         AbstractBeanMetaData bmd = new AbstractBeanMetaData(interceptor.getBeanClassName());
/*  70 */         String intName = this.name + "$" + i++;
/*  71 */         bmd.setName(intName);
/*  72 */         this.util.setAspectManagerProperty(bmd, "manager");
/*  73 */         BeanMetaDataUtil.setSimpleProperty(bmd, "forStack", Boolean.TRUE);
/*     */
/*  75 */         if ((interceptor instanceof AdviceData))
/*     */         {
/*  77 */           BeanMetaDataUtil.DependencyBuilder db = new BeanMetaDataUtil.DependencyBuilder(bmd, "aspect", interceptor.getRefName());
/*  78 */           BeanMetaDataUtil.setDependencyProperty(db);
/*  79 */           if (((AdviceData)interceptor).getAdviceMethod() != null)
/*     */           {
/*  81 */             BeanMetaDataUtil.setSimpleProperty(bmd, "aspectMethod", ((AdviceData)interceptor).getAdviceMethod());
/*     */           }
/*  83 */           BeanMetaDataUtil.setSimpleProperty(bmd, "type", ((AdviceData)interceptor).getType());
/*     */         }
/*     */         else
/*     */         {
/*  88 */           BeanMetaDataUtil.DependencyBuilder db = new BeanMetaDataUtil.DependencyBuilder(bmd, "stack", interceptor.getRefName());
/*  89 */           BeanMetaDataUtil.setDependencyProperty(db);
/*     */         }
/*  91 */         result.add(bmd);
/*  92 */         almd.add(new AbstractInjectionValueMetaData(intName));
/*  93 */         BeanMetaDataUtil.setSimpleProperty(stack, "advices", almd);
/*     */       }
/*     */     }
/*     */
/*  97 */     return result;
View Full Code Here

/*    */   public Object startElement(Object parent, QName name, ElementBinding element)
/*    */   {
/* 48 */     if (BeanSchemaBinding20.collectionQName.equals(name))
/* 49 */       return new AbstractCollectionMetaData();
/* 50 */     if (BeanSchemaBinding20.listQName.equals(name))
/* 51 */       return new AbstractListMetaData();
/* 52 */     if (BeanSchemaBinding20.setQName.equals(name))
/* 53 */       return new AbstractSetMetaData();
/* 54 */     if (BeanSchemaBinding20.arrayQName.equals(name)) {
/* 55 */       return new AbstractArrayMetaData();
/*    */     }
View Full Code Here

/*      */       public Object startElement(Object parent, QName name, ElementBinding element)
/*      */       {
/* 1252 */         if (BeanSchemaBinding.collectionQName.equals(name))
/* 1253 */           return new AbstractCollectionMetaData();
/* 1254 */         if (BeanSchemaBinding.listQName.equals(name))
/* 1255 */           return new AbstractListMetaData();
/* 1256 */         if (BeanSchemaBinding.setQName.equals(name))
/* 1257 */           return new AbstractSetMetaData();
/* 1258 */         if (BeanSchemaBinding.arrayQName.equals(name)) {
/* 1259 */           return new AbstractArrayMetaData();
/*      */         }
View Full Code Here

   public Object startElement(Object parent, QName name, ElementBinding element)
   {
      if (BeanSchemaBinding20.collectionQName.equals(name))
         return new AbstractCollectionMetaData();
      else if (BeanSchemaBinding20.listQName.equals(name))
         return new AbstractListMetaData();
      else if (BeanSchemaBinding20.setQName.equals(name))
         return new AbstractSetMetaData();
      else if (BeanSchemaBinding20.arrayQName.equals(name))
         return new AbstractArrayMetaData();
      else
View Full Code Here

         public Object startElement(Object parent, QName name, ElementBinding element)
         {
            if (collectionQName.equals(name))
               return new AbstractCollectionMetaData();
            else if (listQName.equals(name))
               return new AbstractListMetaData();
            else if (setQName.equals(name))
               return new AbstractSetMetaData();
            else if (arrayQName.equals(name))
               return new AbstractArrayMetaData();
            else
View Full Code Here

      util.setAspectManagerProperty(stack, "manager");
      result.add(stack);
     
      if (interceptors.size() > 0)
      {
         AbstractListMetaData almd = new AbstractListMetaData();
         int i = 0;
         for (BaseInterceptorData interceptor : interceptors)
         {
            AbstractBeanMetaData bmd = new AbstractBeanMetaData(interceptor.getBeanClassName());
            String intName = name + "$" + i++;
            bmd.setName(intName);
            util.setAspectManagerProperty(bmd, "manager");
            BeanMetaDataUtil.setSimpleProperty(bmd, "forStack", Boolean.TRUE);
           
            if (interceptor instanceof AdviceData)
            {
               BeanMetaDataUtil.DependencyBuilder db = new BeanMetaDataUtil.DependencyBuilder(bmd, "aspect", interceptor.getRefName());
               BeanMetaDataUtil.setDependencyProperty(db);
               if (((AdviceData)interceptor).getAdviceMethod() != null)
               {
                  BeanMetaDataUtil.setSimpleProperty(bmd, "aspectMethod", ((AdviceData)interceptor).getAdviceMethod());
               }
               BeanMetaDataUtil.setSimpleProperty(bmd, "type", ((AdviceData)interceptor).getType());
              
            }
            else
            {
               BeanMetaDataUtil.DependencyBuilder db = new BeanMetaDataUtil.DependencyBuilder(bmd, "stack", interceptor.getRefName());
               BeanMetaDataUtil.setDependencyProperty(db);
            }
            result.add(bmd);
            almd.add(new AbstractInjectionValueMetaData(intName));
            BeanMetaDataUtil.setSimpleProperty(stack, "advices", almd);
         }        
      }
     
      return result;
View Full Code Here

      cflowStack.setName(getName());
      BeanMetaDataUtil.setSimpleProperty(cflowStack, "name", getName());
      util.setAspectManagerProperty(cflowStack, "manager");
      result.add(cflowStack);
     
      AbstractListMetaData lmd = new AbstractListMetaData();
      lmd.setType(ArrayList.class.getName());
      BeanMetaDataUtil.setSimpleProperty(cflowStack, "entries", lmd);
      int i = 0;
      for (AbstractBeanMetaData entry : entries)
      {
         String entryName = cflowStack.getName() + "$" + i++;
         entry.setName(entryName);
         lmd.add(new AbstractInjectionValueMetaData(entryName));
         result.add(entry);
      }

      return result;
   }
View Full Code Here

TOP

Related Classes of org.jboss.beans.metadata.plugins.AbstractListMetaData

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.