Examples of VFSContextFactory


Examples of org.jboss.virtual.spi.VFSContextFactory

   }
  
   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

Examples of org.jboss.virtual.spi.VFSContextFactory

    * @throws IOException if there is a problem accessing the VFS
    * @throws IllegalArgumentException if the rootURL is null
    */
   public static VFS getVFS(URI rootURI) throws IOException
   {
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      if (factory == null)
         throw new IOException("No context factory for " + rootURI);
      VFSContext context = factory.getVFS(rootURI);
      return context.getVFS();
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContextFactory

    * @throws IOException if there is a problem accessing the VFS
    * @throws IllegalArgumentException if the rootURL is null
    */
   public static VFS getVFS(URL rootURL) throws IOException
   {
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURL);
      if (factory == null)
         throw new IOException("No context factory for " + rootURL);
      VFSContext context = factory.getVFS(rootURL);
      return context.getVFS();
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContextFactory

    * @throws IOException if there is a problem accessing the VFS
    * @throws IllegalArgumentException if the rootURL is null
    */
   public static VFS getVFS(URI rootURI) throws IOException
   {
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
      if (factory == null)
         throw new IOException("No context factory for " + rootURI);
      VFSContext context = factory.getVFS(rootURI);
      return context.getVFS();
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContextFactory

    * @throws IOException if there is a problem accessing the VFS
    * @throws IllegalArgumentException if the rootURL is null
    */
   public static VFS getVFS(URL rootURL) throws IOException
   {
      VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURL);
      if (factory == null)
         throw new IOException("No context factory for " + rootURL);
      VFSContext context = factory.getVFS(rootURL);
      return context.getVFS();
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContextFactory

      // 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);
      // Restore the log
      log = Logger.getLogger(getClass());
   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContextFactory

   }
  
   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

Examples of org.jboss.virtual.spi.VFSContextFactory

/*     */   }
/*     */
/*     */   protected VirtualFileHandler createLinkHandler(VirtualFileHandler parent, String name, URI linkURI)
/*     */     throws IOException
/*     */   {
/* 221 */     VFSContextFactory factory = VFSContextFactoryLocator.getFactory(linkURI);
/* 222 */     VFSContext context = factory.getVFS(linkURI);
/* 223 */     VirtualFileHandler rootHandler = context.getRoot();
/*     */
/* 226 */     return new DelegatingHandler(getVFSContext(), parent, name, rootHandler);
/*     */   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContextFactory

/*     */   {
/* 406 */     ObjectInputStream.GetField fields = in.readFields();
/* 407 */     URI rootURI = (URI)fields.get("rootURI", null);
/* 408 */     this.parent = ((VirtualFileHandler)fields.get("parent", null));
/* 409 */     this.name = ((String)fields.get("name", null));
/* 410 */     VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
/* 411 */     this.context = factory.getVFS(rootURI);
/* 412 */     this.references = new AtomicInteger(0);
/* 413 */     this.vfsUrl = ((URL)fields.get("vfsUrl", null));
/*     */   }
View Full Code Here

Examples of org.jboss.virtual.spi.VFSContextFactory

/*     */   }
/*     */
/*     */   public static VFS getVFS(URI rootURI)
/*     */     throws IOException
/*     */   {
/*  83 */     VFSContextFactory factory = VFSContextFactoryLocator.getFactory(rootURI);
/*  84 */     if (factory == null)
/*  85 */       throw new IOException("No context factory for " + rootURI);
/*  86 */     VFSContext context = factory.getVFS(rootURI);
/*  87 */     return context.getVFS();
/*     */   }
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.