Package org.jboss.aop.metadata

Examples of org.jboss.aop.metadata.ClassMetaDataLoader


         {
            if (data.matches(advisor, clazz))
            {
               attached = true;
               if (addAdvisor) data.addAdvisor(advisor);
               ClassMetaDataLoader loader = data.getLoader();
               loader.bind(advisor, data, clazz.getDeclaredMethods(), clazz.getDeclaredFields(), clazz.getDeclaredConstructors());
            }
         }
      }
      return attached;
   }
View Full Code Here


    * <p/>
    * Given a group, return the loader for that group
    */
   public ClassMetaDataLoader findClassMetaDataLoader(String group)
   {
      ClassMetaDataLoader loader = classMetaDataLoaders.get(group);
      if (loader == null) loader = SimpleClassMetaDataLoader.singleton;
      return loader;
   }
View Full Code Here

         {
            if (data.matches(advisor, clazz))
            {
               attached = true;
               if (addAdvisor) data.addAdvisor(advisor);
               ClassMetaDataLoader loader = data.getLoader();
               loader.bind(advisor, data, clazz.getDeclaredMethods(), clazz.getDeclaredFields(), clazz.getDeclaredConstructors());
            }
         }
      }
      return attached;
   }
View Full Code Here

/* 100 */     if (this.tag == null)
/* 101 */       throw new IllegalArgumentException("Null tag");
/* 102 */     if (this.className == null) {
/* 103 */       throw new IllegalArgumentException("Null className");
/*     */     }
/* 105 */     ClassMetaDataLoader loader = this.manager.findClassMetaDataLoader(this.tag);
/*     */     try
/*     */     {
/* 108 */       ClassMetaDataBinding data = loader.importMetaData(this.element, this.name, this.tag, this.className);
/* 109 */       this.manager.addClassMetaData(data);
/*     */     }
/*     */     catch (Exception e)
/*     */     {
/* 114 */       throw new RuntimeException(e);
View Full Code Here

/*     */
/*     */   protected void bindClassMetaData(ClassMetaDataBinding data)
/*     */   {
/*     */     try
/*     */     {
/* 166 */       ClassMetaDataLoader loader = data.getLoader();
/* 167 */       Object[] objs = this.advisedMethods.getValues();
/* 168 */       Method[] methods = new Method[objs.length];
/* 169 */       for (int i = 0; i < objs.length; i++) methods[i] = ((Method)objs[i]);
/* 170 */       loader.bind(this, data, methods, this.advisedFields, this.clazz.getDeclaredConstructors());
/*     */     }
/*     */     catch (Exception ex)
/*     */     {
/* 175 */       ex.printStackTrace();
/*     */     }
View Full Code Here

/*      */   {
/*  927 */     if (this.inheritsDeclarations)
/*      */     {
/*  929 */       if (!this.parentFirst)
/*      */       {
/*  931 */         ClassMetaDataLoader loader = super.findClassMetaDataLoader(group);
/*  932 */         if (loader == null)
/*      */         {
/*  934 */           loader = this.parent.findClassMetaDataLoader(group);
/*      */         }
/*  936 */         return loader;
/*      */       }
/*      */
/*  940 */       ClassMetaDataLoader loader = this.parent.findClassMetaDataLoader(group);
/*  941 */       if (loader == null)
/*      */       {
/*  943 */         loader = super.findClassMetaDataLoader(group);
/*      */       }
/*  945 */       return loader;
View Full Code Here

/*  420 */     this.dynamicCFlows.remove(name);
/*      */   }
/*      */
/*      */   public ClassMetaDataLoader findClassMetaDataLoader(String group)
/*      */   {
/*  458 */     ClassMetaDataLoader loader = (ClassMetaDataLoader)this.classMetaDataLoaders.get(group);
/*  459 */     if (loader == null) loader = SimpleClassMetaDataLoader.singleton;
/*  460 */     return loader;
/*      */   }
View Full Code Here

/* 1088 */         ClassMetaDataBinding data = (ClassMetaDataBinding)it.next();
/* 1089 */         if (data.matches(advisor, clazz))
/*      */         {
/* 1091 */           attached = true;
/* 1092 */           if (addAdvisor) data.addAdvisor(advisor);
/* 1093 */           ClassMetaDataLoader loader = data.getLoader();
/* 1094 */           loader.bind(advisor, data, clazz.getDeclaredMethods(), clazz.getDeclaredFields(), clazz.getDeclaredConstructors());
/*      */         }
/*      */       }
/*      */     }
/* 1098 */     return attached;
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   protected void bindClassMetaData(ClassMetaDataBinding data)
/*      */   {
/*      */     try {
/*  876 */       ClassMetaDataLoader loader = data.getLoader();
/*  877 */       Object[] objs = this.advisedMethods.getValues();
/*  878 */       Method[] methods = new Method[objs.length];
/*  879 */       Field[] fields = this.advisedFields;
/*      */
/*  881 */       if (fields == null) fields = new Field[0];
/*  882 */       Constructor[] cons = this.constructors;
/*      */
/*  884 */       if (cons == null) cons = new Constructor[0];
/*  885 */       for (int i = 0; i < objs.length; i++) methods[i] = ((Method)objs[i]);
/*  886 */       loader.bind(this, data, methods, fields, cons);
/*      */     }
/*      */     catch (Exception ex)
/*      */     {
/*  891 */       ex.printStackTrace();
/*      */     }
View Full Code Here

/*      */     throws Exception
/*      */   {
/*  574 */     String classExpr = element.getAttribute("class");
/*  575 */     String tag = element.getAttribute("tag");
/*  576 */     String name = getName(element, "metadata: " + tag + " " + classExpr);
/*  577 */     ClassMetaDataLoader loader = this.manager.findClassMetaDataLoader(tag);
/*  578 */     return loader.importMetaData(element, name, tag, classExpr);
/*      */   }
View Full Code Here

TOP

Related Classes of org.jboss.aop.metadata.ClassMetaDataLoader

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.