1 22 package org.jboss.deployers.plugins.structure; 23 24 import java.io.Serializable ; 25 import java.util.HashMap ; 26 import java.util.Map ; 27 28 import org.jboss.deployers.spi.structure.vfs.ClassPathInfo; 29 30 37 public class ClassPathInfoImpl 38 implements ClassPathInfo, Serializable 39 { 40 private static final long serialVersionUID = 1; 41 42 private String path; 43 private HashMap options = new HashMap (); 44 45 public ClassPathInfoImpl() 46 { 47 this(null); 48 } 49 public ClassPathInfoImpl(String path) 50 { 51 this.path = path; 52 } 53 54 public String getPath() 55 { 56 return path; 57 } 58 public void setPath(String path) 59 { 60 this.path = path; 61 } 62 63 public Object getOption(Object key) 64 { 65 return options.get(key); 66 } 67 68 public Map getOptions() 69 { 70 return options; 71 } 72 73 public void setOption(Object key, Object value) 74 { 75 options.put(key, value); 76 } 77 78 public void setOptions(Map options) 79 { 80 this.options.clear(); 81 this.options.putAll(options); 82 } 83 84 public String toString() 85 { 86 StringBuilder tmp = new StringBuilder (); 87 tmp.append("ClassPathInfo("); 88 tmp.append(path); 89 tmp.append(')'); 90 return tmp.toString(); 91 } 92 } 93 | Popular Tags |