Examples of VirtualFileAdaptor


Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

                  {
                     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

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

      }

      // Bind service references
      {
         ClassLoader loader = unit.getClassLoader();
         UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(unit.getRoot());
         Iterator<ServiceReferenceMetaData> serviceReferences = beanMetaData.getServiceReferences();
         if (serviceReferences != null)
         {
            while (serviceReferences.hasNext())
            {
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

   {
      if (unit instanceof VFSDeploymentUnit)
      {
         VFSDeploymentUnit vfsUnit = (VFSDeploymentUnit)unit;
         ClassLoader loader = unit.getClassLoader();
         UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(vfsUnit.getRoot());
         for (ServiceReferenceMetaData sref : serviceRefs)
         {
            String refName = sref.getServiceRefName();
            new ServiceReferenceHandler().bindServiceRef(envCtx, refName, vfsRoot, loader, sref);
         }
View Full Code Here

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

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

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

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

/*    */   {
/*    */     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

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

/*      */       }
/*      */
/*      */     }
/*      */
/* 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

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

/*     */             {
/* 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

Examples of org.jboss.metadata.serviceref.VirtualFileAdaptor

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

Examples of org.jboss.test.virtual.support.VirtualFileAdaptor

      testVirtualFileAdaptor(file, "beans");
   }

   protected void testVirtualFileAdaptor(VirtualFile file, String pathName) throws Exception
   {
      VirtualFileAdaptor adaptor = new VirtualFileAdaptor(file);
      adaptor = serializeDeserialize(adaptor, VirtualFileAdaptor.class);
      VirtualFileAdaptor vfaChild = adaptor.findChild(pathName);
      assertNotNull(vfaChild);
      List<VirtualFile> children = file.getChildren();
      if (children != null)
      {
         for (VirtualFile child : children)
         {
            adaptor = new VirtualFileAdaptor(child);
            adaptor = serializeDeserialize(adaptor, VirtualFileAdaptor.class);
            assertNotNull(adaptor.findChild("..")); // should find parent
         }
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.