1 16 package org.apache.commons.vfs.provider.res; 17 18 import org.apache.commons.vfs.FileSystemConfigBuilder; 19 import org.apache.commons.vfs.FileSystemOptions; 20 import org.apache.commons.vfs.provider.url.UrlFileSystem; 21 22 27 public class ResourceFileSystemConfigBuilder extends FileSystemConfigBuilder 28 { 29 private final static ResourceFileSystemConfigBuilder builder = new ResourceFileSystemConfigBuilder(); 30 31 public static ResourceFileSystemConfigBuilder getInstance() 32 { 33 return builder; 34 } 35 36 private ResourceFileSystemConfigBuilder() 37 { 38 } 39 40 public void setClassLoader(FileSystemOptions opts, ClassLoader classLoader) 41 { 42 setParam(opts, ClassLoader .class.getName(), classLoader); 43 } 44 45 public ClassLoader getClassLoader(FileSystemOptions opts) 46 { 47 return (ClassLoader ) getParam(opts, ClassLoader .class.getName()); 48 } 49 50 protected Class getConfigClass() 51 { 52 return UrlFileSystem.class; 53 } 54 } 55 | Popular Tags |