Package org.jboss.metadata.javaee.spec

Examples of org.jboss.metadata.javaee.spec.ServiceReferenceMetaData


/*  89 */       name = InjectionUtil.getEncName(type).substring(4);
/*     */     }
/*  91 */     if (!container.getEncInjectors().containsKey(name))
/*     */     {
/*  93 */       String encName = "env/" + name;
/*  94 */       ServiceReferenceMetaData sref = getServiceRef(name);
/*  95 */       container.getEncInjectors().put(name, new ServiceRefInjector(encName, type, sref));
/*     */     }
/*     */   }
View Full Code Here


/*     */     }
/* 111 */     String encName = "env/" + name;
/* 112 */     Context encCtx = container.getEnc();
/* 113 */     if (!container.getEncInjectors().containsKey(name))
/*     */     {
/* 115 */       ServiceReferenceMetaData sref = getServiceRef(name);
/* 116 */       container.getEncInjectors().put(name, new ServiceRefInjector(encName, method, sref));
/*     */     }
/*     */
/* 119 */     injectors.put(method, new JndiMethodInjector(method, encName, encCtx));
/*     */   }
View Full Code Here

/*     */     }
/* 131 */     String encName = "env/" + name;
/* 132 */     Context encCtx = container.getEnc();
/* 133 */     if (!container.getEncInjectors().containsKey(name))
/*     */     {
/* 135 */       ServiceReferenceMetaData sref = getServiceRef(name);
/* 136 */       container.getEncInjectors().put(name, new ServiceRefInjector(encName, field, sref));
/*     */     }
/*     */
/* 139 */     injectors.put(field, new JndiFieldInjector(field, encName, encCtx));
/*     */   }
View Full Code Here

/* 139 */     injectors.put(field, new JndiFieldInjector(field, encName, encCtx));
/*     */   }
/*     */
/*     */   private ServiceReferenceMetaData getServiceRef(String name)
/*     */   {
/* 144 */     ServiceReferenceMetaData sref = (ServiceReferenceMetaData)this.srefMap.get(name);
/* 145 */     if (sref == null)
/*     */     {
/* 147 */       log.debug("No override for @WebServiceRef.name: " + name);
/* 148 */       sref = new JBossServiceReferenceMetaData();
/* 149 */       sref.setServiceRefName(name);
/*     */     }
/* 151 */     return sref;
/*     */   }
View Full Code Here

/* 184 */       if (srefs == null)
/*     */       {
/* 186 */         srefs = new ServiceReferencesMetaData();
/* 187 */         refs.setServiceReferences(srefs);
/*     */       }
/* 189 */       ServiceReferenceMetaData ref = createServiceRef(annotation, element);
/* 190 */       srefs.add(ref);
/* 191 */       if (trace)
/* 192 */         log.trace("created service-ref: " + ref);
/*     */     }
/* 194 */     else if (isResourceRef(type))
View Full Code Here

/* 303 */     return entry;
/*     */   }
/*     */
/*     */   protected ServiceReferenceMetaData createServiceRef(Resource annotation, E element)
/*     */   {
/* 308 */     ServiceReferenceMetaData ref = new ServiceReferenceMetaData();
/* 309 */     String name = annotation.name();
/* 310 */     if (name.length() == 0)
/* 311 */       name = getName(element);
/* 312 */     ref.setServiceRefName(name);
/* 313 */     if (annotation.mappedName().length() > 0)
/* 314 */       ref.setMappedName(annotation.mappedName());
/* 315 */     ref.setAnnotatedElement(element);
/* 316 */     DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description());
/* 317 */     if (dg != null)
/* 318 */       ref.setDescriptionGroup(dg);
/* 319 */     if (annotation.type() != Object.class)
/* 320 */       ref.setServiceRefType(annotation.type().getName());
/*     */     else
/* 322 */       ref.setServiceRefType(getType(element));
/* 323 */     String injectionName = getInjectionName(element);
/* 324 */     Set injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
/* 325 */     if (injectionTargets != null) {
/* 326 */       ref.setInjectionTargets(injectionTargets);
/*     */     }
/* 328 */     return ref;
/*     */   }
View Full Code Here

/* 187 */     return merged;
/*     */   }
/*     */
/*     */   public void merge(JBossServiceReferenceMetaData override, ServiceReferenceMetaData original)
/*     */   {
/* 198 */     ServiceReferenceMetaData sr0 = override;
/* 199 */     ServiceReferenceMetaData sr1 = original;
/* 200 */     super.merge(sr0, sr1);
/*     */
/* 203 */     if ((original != null) && (original.getPortComponentRef() != null))
/*     */     {
/* 205 */       if (this.jbossPortComponentRef == null)
View Full Code Here

/*      */       {
/*  472 */         Map tmpInterceptor = InjectionUtil.processAnnotations(this, handlers, interceptorInfo.getClazz());
/*  473 */         InterceptorInjector injector = new InterceptorInjector(this, interceptorInfo, tmpInterceptor);
/*  474 */         this.interceptorInjectors.put(interceptorInfo.getClazz(), injector);
/*      */       }
/*      */       ServiceReferenceMetaData sref;
/*  479 */       if ((this.xml != null) && (this.xml.getServiceReferences() != null))
/*      */       {
/*  481 */         for (Iterator i$ = this.xml.getServiceReferences().iterator(); i$.hasNext(); sref = (ServiceReferenceMetaData)i$.next());
/*      */       }
/*      */
View Full Code Here

/* 1278 */     Iterator serviceReferences = beanMetaData.getServiceReferences();
/* 1279 */     if (serviceReferences != null)
/*      */     {
/* 1281 */       while (serviceReferences.hasNext())
/*      */       {
/* 1283 */         ServiceReferenceMetaData sref = (ServiceReferenceMetaData)serviceReferences.next();
/* 1284 */         String refName = sref.getServiceRefName();
/* 1285 */         new ServiceReferenceHandler().bindServiceRef(envCtx, refName, vfsRoot, loader, sref);
/*      */       }
/*      */
/*      */     }
/*      */
View Full Code Here

/* 346 */         if (serviceRefs != null)
/*     */         {
/* 348 */           Iterator itRefs = serviceRefs.iterator();
/* 349 */           while (itRefs.hasNext())
/*     */           {
/* 351 */             ServiceReferenceMetaData sref = (ServiceReferenceMetaData)itRefs.next();
/*     */             try
/*     */             {
/* 354 */               String name = sref.getServiceRefName();
/* 355 */               String encName = "env/" + name;
/* 356 */               Context encCtx = getEnc();
/*     */
/* 358 */               UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(getRootFile());
/* 359 */               new ServiceReferenceHandler().bindServiceRef(encCtx, encName, vfsRoot, getClassloader(), sref);
View Full Code Here

TOP

Related Classes of org.jboss.metadata.javaee.spec.ServiceReferenceMetaData

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.