1 22 package org.jboss.virtual.classloading; 23 24 import java.io.IOException ; 25 import java.net.URI ; 26 import java.util.Arrays ; 27 28 import org.jboss.logging.Logger; 29 import org.jboss.virtual.VFS; 30 31 37 public class VFSClassLoaderFactory 38 { 39 private static Logger log = Logger.getLogger(VFSClassLoaderFactory.class); 40 41 public static VFSClassLoader newClassLoader(URI rootURI, String [] paths) 42 throws IOException 43 { 44 log.debug("newClassLoader, rootURI="+rootURI+", paths="+Arrays.asList(paths)); 45 VFS vfs = VFS.getVFS(rootURI); 46 return SecurityActions.newClassLoader(paths, vfs); 47 } 48 public static VFSClassLoader newClassLoader(String [] paths, VFS vfs) 49 { 50 log.debug("newClassLoader, vfs="+vfs+", paths="+Arrays.asList(paths)); 51 return SecurityActions.newClassLoader(paths, vfs); 52 } 53 public static VFSClassLoader newClassLoader(String [] paths, VFS vfs, ClassLoader parent) 54 { 55 log.debug("newClassLoader, vfs"+vfs+", paths="+Arrays.asList(paths) 56 +", parent="+parent); 57 return SecurityActions.newClassLoader(paths, vfs, parent); 58 } 59 } 60 | Popular Tags |