KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > rentacar > util > RentacarConfigHelper


1 package org.objectweb.rentacar.util;
2
3
4 /**
5  * @author mcarpentier Uses ConfigHelper to load the rentacar's configuration File.
6  */

7 public class RentacarConfigHelper {
8
9     public static String JavaDoc getProperty(String JavaDoc comp, String JavaDoc key) throws RentacarUtilException {
10         String JavaDoc 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