Package org.jboss.metadata.serviceref

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor


/*     */   }
/*     */
/*     */   private void linkServiceRefs(VFSDeploymentUnit unit, ServiceReferencesMetaData serviceRefs, Context envCtx) throws NamingException
/*     */   {
/* 505 */     ClassLoader loader = unit.getClassLoader();
/* 506 */     UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(unit.getRoot());
/* 507 */     for (ServiceReferenceMetaData sref : serviceRefs)
/*     */     {
/* 509 */       String refName = sref.getServiceRefName();
/* 510 */       new ServiceReferenceHandler().bindServiceRef(envCtx, refName, vfsRoot, loader, sref);
/*     */     }
View Full Code Here


/*    */   {
/*    */     try
/*    */     {
/* 61 */       Context envCtx = container.getEnc();
/* 62 */       ClassLoader loader = container.getClassloader();
/* 63 */       UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(container.getRootFile());
/* 64 */       new ServiceReferenceHandler().bindServiceRef(envCtx, this.name, vfsRoot, loader, this.sref);
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/* 68 */       throw new WebServiceException("Unable to bind ServiceRef [enc=" + this.name + "]", e);
View Full Code Here

/*      */       }
/*      */
/*      */     }
/*      */
/* 1276 */     ClassLoader loader = this.unit.getClassLoader();
/* 1277 */     UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(this.unit.getRoot());
/* 1278 */     Iterator serviceReferences = beanMetaData.getServiceReferences();
/* 1279 */     if (serviceReferences != null)
/*      */     {
/* 1281 */       while (serviceReferences.hasNext())
/*      */       {
View Full Code Here

/*     */             {
/* 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);
/*     */             }
/*     */             catch (Exception e)
/*     */             {
/* 364 */               log.error("Failed to bind service-ref", e);
View Full Code Here

{
   @Override
   public UnifiedVirtualFile create(VirtualFile virtualFile)
   {
      if(virtualFile instanceof VirtualFileWrapper)
         return new VirtualFileAdaptor(((VirtualFileWrapper) virtualFile).getWrapped());
      return null;
   }
View Full Code Here

                  {
                     String name = sref.getServiceRefName();
                     String encName = "env/" + name;
                     Context encCtx = getEnc();

                     UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(getRootFile());
                     new ServiceReferenceHandler().bindServiceRef(encCtx, encName, vfsRoot, getClassloader(), sref);

                  }
                  catch (Exception e)
                  {
View Full Code Here

TOP

Related Classes of org.jboss.metadata.serviceref.VirtualFileAdaptor

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.