1 27 package olstore.client; 28 29 import java.util.Properties; 30 31 35 public class Configure { 36 37 38 private Properties props; 39 40 44 public Configure() throws Exception { 45 load("uddi.properties"); 46 } 47 48 53 public void load(String file) throws Exception { 54 props = new Properties(); 55 props.load(new java.io.FileInputStream(file)); 56 } 57 58 63 public String getProperty(String name) { 64 return props.getProperty(name); 65 } 66 } 67 | Popular Tags |