Package org.jboss.metadata.plugins.loader.memory

Examples of org.jboss.metadata.plugins.loader.memory.MemoryMetaDataLoader


    * @param annotations the annotations
    */
   private void addAnnotations(ClassLoader classloader, MemoryMetaDataLoader mutable, MethodInfo methodInfo, Set<AnnotationMetaData> annotations)
   {
      ScopeKey scope = new ScopeKey(CommonLevels.JOINPOINT_OVERRIDE, methodInfo.getName());
      MemoryMetaDataLoader loader = new MemoryMetaDataLoader(scope);
      addAnnotations(classloader, loader, annotations);
      mutable.addComponentMetaDataRetrieval(new MethodSignature(methodInfo), loader);
   }
View Full Code Here


    * @param annotations the annotations
    */
   private void addAnnotations(ClassLoader classloader, MemoryMetaDataLoader mutable, FieldInfo fieldInfo, Set<AnnotationMetaData> annotations)
   {
      ScopeKey scope = new ScopeKey(CommonLevels.JOINPOINT_OVERRIDE, fieldInfo.getName());
      MemoryMetaDataLoader loader = new MemoryMetaDataLoader(scope);
      addAnnotations(classloader, loader, annotations);
      mutable.addComponentMetaDataRetrieval(new FieldSignature(fieldInfo), loader);
   }
View Full Code Here

         // find scoped controller
         MutableMetaDataRepository mmdr = repository.getMetaDataRepository();
         MetaDataRetrieval mdr = mmdr.getMetaDataRetrieval(scopeKey);
         if (mdr == null)
         {
            mdr = new MemoryMetaDataLoader(scopeKey);
            mmdr.addMetaDataRetrieval(mdr);
         }
         MetaDataItem<ScopedKernelController> controllerItem = mdr.retrieveMetaData(ScopedKernelController.class);
         ScopedKernelController scopedController;
         if (controllerItem != null)
View Full Code Here

      if (cmd == null)
         throw new IllegalArgumentException("Null cmd");

      ScopeKey scopeKey = new ScopeKey(CommonLevels.JVM, name);
      MutableMetaDataLoader loader = new MemoryMetaDataLoader(scopeKey);
      loader.addMetaData(cmd, RARDeploymentMetaData.class);

      MetaDataRetrieval r = mdr.addMetaDataRetrieval(loader);

      if (r != null)
      {
View Full Code Here

      if (group == null)
         throw new IllegalArgumentException("Null group");

      ScopeKey scopeKey = new ScopeKey(CommonLevels.JVM, name);
      MutableMetaDataLoader loader = new MemoryMetaDataLoader(scopeKey);
      loader.addMetaData(group, ManagedConnectionFactoryDeploymentGroup.class);

      MetaDataRetrieval r = mdr.addMetaDataRetrieval(loader);

      if (r != null)
      {
View Full Code Here

/*     */   }
/*     */
/*     */   private void addAnnotations(ClassLoader classloader, MemoryMetaDataLoader mutable, MethodInfo methodInfo, Set<AnnotationMetaData> annotations)
/*     */   {
/* 212 */     ScopeKey scope = new ScopeKey(CommonLevels.JOINPOINT_OVERRIDE, methodInfo.getName());
/* 213 */     MemoryMetaDataLoader loader = new MemoryMetaDataLoader(scope);
/* 214 */     addAnnotations(classloader, loader, annotations);
/* 215 */     mutable.addComponentMetaDataRetrieval(new MethodSignature(methodInfo), loader);
/*     */   }
View Full Code Here

/* 109 */       if (retrieval == null)
/*     */       {
/* 111 */         retrieval = scopeInfo.initMetaDataRetrieval(repository, context, scope);
/* 112 */         if (retrieval == null)
/*     */         {
/* 114 */           retrieval = new MemoryMetaDataLoader(thisScope);
/* 115 */           repository.addMetaDataRetrieval(retrieval);
/*     */         }
/*     */       }
/* 118 */       retrievals.add(0, retrieval);
/*     */     }
View Full Code Here

/*     */
/*     */   public void addMetaData(MutableMetaDataRepository repository, ControllerContext context)
/*     */   {
/* 110 */     this.repository = repository;
/* 111 */     ScopeKey scope = getMutableScope();
/* 112 */     MemoryMetaDataLoader mutable = new MemoryMetaDataLoader(scope);
/* 113 */     repository.addMetaDataRetrieval(mutable);
/* 114 */     addMetaData(repository, context, mutable);
/*     */   }
View Full Code Here

/*     */
/* 127 */       MutableMetaDataRepository mmdr = repository.getMetaDataRepository();
/* 128 */       MetaDataRetrieval mdr = mmdr.getMetaDataRetrieval(scopeKey);
/* 129 */       if (mdr == null)
/*     */       {
/* 131 */         mdr = new MemoryMetaDataLoader(scopeKey);
/* 132 */         mmdr.addMetaDataRetrieval(mdr);
/*     */       }
/* 134 */       MetaDataItem controllerItem = mdr.retrieveMetaData(ScopedKernelController.class);
/*     */       ScopedKernelController scopedController;
/*     */       ScopedKernelController scopedController;
View Full Code Here

/*  87 */     if (this.classLoader == null) {
/*  88 */       throw new IllegalArgumentException("Null class");
/*     */     }
/*  90 */     MetaDataRetrieval classMetaData = ClassMetaDataRetrievalFactory.INSTANCE.getMetaDataRetrieval(new Scope(CommonLevels.CLASS, beanClass));
/*  91 */     ScopeKey instanceScope = new ScopeKey(CommonLevels.INSTANCE, name);
/*  92 */     this.mutableMetaData = new MemoryMetaDataLoader(instanceScope);
/*  93 */     MetaDataRetrieval dynamicXml = new EJBMetaDataLoader(instanceScope, container);
/*     */
/*  95 */     MetaDataContext classContext = new AbstractMetaDataContext(classMetaData);
/*  96 */     MetaDataRetrieval[] instance = { dynamicXml, this.mutableMetaData };
/*  97 */     MetaDataContext instanceContext = new AbstractMetaDataContext(classContext, Arrays.asList(instance));
View Full Code Here

TOP

Related Classes of org.jboss.metadata.plugins.loader.memory.MemoryMetaDataLoader

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.