Package org.jboss.virtual.plugins.context.jar

Source Code of org.jboss.virtual.plugins.context.jar.JarContextFactory

/*    */ package org.jboss.virtual.plugins.context.jar;
/*    */
/*    */ import java.io.IOException;
/*    */ import java.net.MalformedURLException;
/*    */ import java.net.URI;
/*    */ import java.net.URISyntaxException;
/*    */ import java.net.URL;
/*    */ import org.jboss.virtual.plugins.context.AbstractContextFactory;
/*    */ import org.jboss.virtual.spi.VFSContext;
/*    */
/*    */ public class JarContextFactory extends AbstractContextFactory
/*    */ {
/*    */   public JarContextFactory()
/*    */   {
/* 44 */     super(new String[] { "jar", "vfsjar" });
/*    */   }
/*    */
/*    */   public VFSContext getVFS(URL root) throws IOException {
/*    */     MalformedURLException ex;
/*    */     try {
/* 51 */       return new JarContext(fromVFS(root));
/*    */     }
/*    */     catch (URISyntaxException e)
/*    */     {
/* 55 */       ex = new MalformedURLException("non-URI compliant URL");
/* 56 */       ex.initCause(e);
/* 57 */     }throw ex;
/*    */   }
/*    */
/*    */   public VFSContext getVFS(URI root)
/*    */     throws IOException
/*    */   {
/* 63 */     return getVFS(root.toURL());
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.virtual.plugins.context.jar.JarContextFactory
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.virtual.plugins.context.jar.JarContextFactory

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.