Package org.jboss.virtual.spi

Examples of org.jboss.virtual.spi.VFSContextFactory


/*     */   }
/*     */
/*     */   public static VFS getVFS(URL rootURL)
/*     */     throws IOException
/*     */   {
/* 129 */     VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURL);
/* 130 */     if (factory == null)
/* 131 */       throw new IOException("No context factory for " + rootURL);
/* 132 */     VFSContext context = factory.getVFS(rootURL);
/* 133 */     return context.getVFS();
/*     */   }
View Full Code Here


   }
  
   protected VirtualFileHandler createLinkHandler(VirtualFileHandler parent, String name, URI linkURI)
      throws IOException
   {
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(linkURI);
      VFSContext context = factory.getVFS(linkURI);
      VirtualFileHandler rootHandler = context.getRoot();
      // Wrap the handler in a delegate so we can change the parent and name
      // TODO: if the factory caches contexts the root handler may not point to the link
      return new DelegatingHandler(this.getVFSContext(), parent, name, rootHandler);
   }
View Full Code Here

      // Read in the serialPersistentFields
      GetField fields = in.readFields();
      URI rootURI = (URI) fields.get("rootURI", null);
      this.parent = (VirtualFileHandler) fields.get("parent", null);
      this.name = (String) fields.get("name", null);
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      this.context = factory.getVFS(rootURI);
      this.references = new AtomicInteger(0);
      this.vfsUrl = (URL)fields.get("vfsUrl", null);
   }
View Full Code Here

TOP

Related Classes of org.jboss.virtual.spi.VFSContextFactory

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.