1 28 29 package com.caucho.vfs; 30 31 import com.caucho.config.ConfigException; 32 import com.caucho.util.L10N; 33 34 37 public class VfsSchemeConfig { 38 private static L10N L = new L10N(VfsSchemeConfig.class); 39 40 private String _name; 41 private Path _path; 42 43 46 public void setName(String name) 47 { 48 _name = name; 49 } 50 51 54 public void setPath(Path path) 55 { 56 _path = path; 57 } 58 59 62 public void init() 63 throws ConfigException 64 { 65 if (_name == null) 66 throw new ConfigException(L.l("vfs-scheme requires a name attribute")); 67 68 if (_path != null) { 69 Vfs.getLocalScheme().put(_name, _path); 70 } 71 } 72 } 73 | Popular Tags |