1 package org.objectweb.rentacar.util; 2 3 4 7 public class RentacarConfigHelper { 8 9 public static String getProperty(String comp, String key) throws RentacarUtilException { 10 String property = null; 11 try { 12 property = PropertiesLoader.getProperty("database.properties", key); 13 } 14 catch (PropertyLoadingException e) { 15 throw new RentacarUtilException("Error opening property file", e); 16 } 17 return property; 18 } 19 20 } 21 | Popular Tags |